Re: exit repeat abuse;-)
Re: exit repeat abuse;-)
Well, of course that's the simplest example of the concept possible.
Nearly all the scripts I have that use that method have numerous conditions that would return to the top of the repeat loop from several points inside.
Much cleaner if if done with the double repeat method.
ES
On Jan 14, 2010, at 6:54am, airdrummer wrote:
>> repeat 1 times
>> do stuff
>> If a is true then exit repeat
>> --do stuff you want to do if a is false
>> end repeat
>
> uh, isn't that better expressed as:
>
> -- do stuff
> If a is false then
> --do stuff you want to do if a is false
> end if
_______________________________________________
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