Re: Exit Repeat
Re: Exit Repeat
- Subject: Re: Exit Repeat
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 02 Oct 2015 16:49:59 +0000
- Thread-topic: Exit Repeat
I've been using a construct like this since OS7
repeat with x from 1 to 100
repeat 1 times
if x then
exit repeat
end if
end repeat
if z then exit repeat
end repeat
Am I incorrect about this? As far as I can tell, there is no way exit from an individual loop of a repeat block; you can only exit from the entire block. I found a workaround using nested repeat loops, which works, but it seems kludgy to me. Is
there a more elegant way to do this?
— Jon
|
_______________________________________________
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