Re: Since Apple Listens to this List... [Case Statements]
Re: Since Apple Listens to this List... [Case Statements]
- Subject: Re: Since Apple Listens to this List... [Case Statements]
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 11 Feb 2002 20:54:48 -0800
On 2/11/02 7:41 PM, "Paul Berkowitz" <email@hidden> wrote:
>
On 2/11/02 4:11 PM, "Brennan" <email@hidden> wrote:
>
>
> Well, I do believe I can live without case, I'd *love* to see 'next repeat'
>
> though. Loop bodies are much tidier for it.
>
>
I agree, but just in case you don't already know this workaround - invented
>
by Ray Robertson - which works just as well:
>
>
>
repeat -- any sort of repeat loop
>
repeat 1 times
>
--blah blah
>
if something = whatever then exit repeat
>
-- more blah
>
end repeat
>
end repeat
and if you're wondering "what if I want to escape the outer repeat loop?" :
set checked to false
repeat -- any sort of repeat loop
repeat 1 times
--blah blah
if something = whatever then exit repeat
-- more blah
if somethingElse = totallyZonked then
set checked to true
exit repeat
end if
--yet more blah
end repeat
if checked then exit repeat
end repeat
--
Paul Berkowitz
_______________________________________________
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.