Re: Skip current repeat iteration
Re: Skip current repeat iteration
- Subject: Re: Skip current repeat iteration
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 22 Oct 2002 11:45:36 -0700
On 10/22/02 11:11 AM, "Paul Berkowitz" <email@hidden> wrote:
>
The best way, if you have to continue statements below the "move on to next"
>
point, is to use Ray Robertson's wonderful 'next repeat equivalent for
>
AppleScript:
>
>
repeat with i from 1 to n -- or any other repeat loop type
>
repeat 1 times
>
-- lots of stuff
>
if x = y then
>
exit repeat -- just the 1 times repeat
>
end if
>
--lost more stuff
>
end repeat
Ooops. I forget to close the inner repeat:
repeat with i from 1 to n -- or any other repeat loop type
repeat 1 times
-- lots of stuff
if x = y then
exit repeat -- just the 1 times repeat
end if
end repeat -- 1 times
--lost more stuff
end repeat
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.