Re: exit repeat abuse;-)
Re: exit repeat abuse;-)
- Subject: Re: exit repeat abuse;-)
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 14 Jan 2010 09:58:33 -0500
On Thu, Jan 14, 2010 at 9:54 AM, airdrummer <email@hidden> 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
Well, "better" is subjective, so it depends who you ask. My answer is
no, because then you have to look for the "end if" before finding out
that, in fact, there's nothing else after it inside the loop. The
"exit repeat" makes that clear immediately.
--
Mark J. Reed <email@hidden>
_______________________________________________
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