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: Shane Stanley <email@hidden>
- Date: Thu, 14 Feb 2002 15:08:06 +1100
On 14/2/02 2:43 PM +1000, Applescript User Lewis,
email@hidden, wrote:
>
Case of x
>
Case is y1
>
-- Do this is x is y1
>
end -- y1 (this replaces the break)
>
Case is y2
>
-- Do this if x is y2
>
end -- y2
>
Case is y3
>
-- Do this if x is y3
>
end --y3
>
end -- Case
Which is four lines longer than:
if x is y1
-- Do this is x is y1
else if x is y2
-- Do this if x is y2
else if x is y3
-- Do this if x is y3
end
Methinks beauty is in the eye of the beholder...
--
Shane Stanley, email@hidden
_______________________________________________
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.