Re: "C" language continue statement in applescript
Re: "C" language continue statement in applescript
- Subject: Re: "C" language continue statement in applescript
- From: Steven Audette <email@hidden>
- Date: Thu, 7 May 2009 13:14:39 -0600
This example might be a little more clear:
repeat with i from 1 to 10 -- your real loop
-- Exiting from this inner loop allows you to "continue" the real loop
repeat 1 times
--- do some stuff
if a is "xyz" then exit repeat -- effectively "continues"
--- do other stuff
end repeat
end repeat
Steve
Hi,
I am using "repeat" statement with many "if" statements. The
situation is in such a way that I can't use "if-else" and so I have
placed many "if" statments.
Among those "if" statements, atleast one "if" is executed, it should
continue repeat for next item.
This is something similar to "continue" statement in "for loop" of C
language.
I googled a lot and couldn't find something relevant to it.
Or is there some "jump" statement like in Apple script so that I can
jump to last line of repeat and so it continues as usual.
Waiting eagerly for some response from great techies.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden