Re: Skip a step in a repeat loop
Re: Skip a step in a repeat loop
- Subject: Re: Skip a step in a repeat loop
- From: Matthew Broms <email@hidden>
- Date: Wed, 29 Aug 2001 11:51:14 -0400
Thanks for the quick responses. I realize I could nest the whole set of
statements in an if/else statement which isn't a big problem. I guess my
question came from knowing that many other scripting languages have a
"continue" command which allows one to pass directly to the next cycle
without having to nest like this (making it just a bit simpler). I looked
in documentation, did Google searches, and searched archives, but came up
empty so I posted. I guess no such command exists in AS.
Thanks again,
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On 8/30/01 1:15 AM, "Matthew Broms" <email@hidden> wrote:
>
Is there a way to skip through one cycle of a repeat loop? I don't want to
>
break out of it, I just want to test on a condition, and if it's true, skip
>
the rest and jump right to the next item/step in the loop.
set completed to false
repeat while not completed
if (specialCondition not true) then
--do stuff
else
--skip to the next item
end
end
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users