Re: Skip current repeat iteration
Re: Skip current repeat iteration
- Subject: Re: Skip current repeat iteration
- From: "Rips Ethan J" <email@hidden>
- Date: Tue, 22 Oct 2002 14:53:12 -0400
- Thread-topic: Re: Skip current repeat iteration
On Tuesday, 22 Oct 2002, John C. Welch wrote:
>
>I know this is a simple
question, but, how does one go about telling a
>
>repeat loop, never mind this
one, go on to the next iteration?
Also on Tuesday, 22 Oct 2002, Olivier
replied:
>
>with having the code to execute inside a nice if statement, i
don't
>
>think there is a skip command
>
>
>
>repeat
>
>if xx then --do the work
>
>end if
>
>end repeat
If you're working with two loops at once, you can also manipulate the inner
loop to run once with every cycle of the outer loop like so:
repeat with i from 1 to x
set j to i
repeat until j > i
--do stuff
set j to (j + 1)
end repeat
end repeat
HTH
Ethan
_______________________________________________
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.