• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Since Apple Listens to this List... [Case Statements]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Since Apple Listens to this List... [Case Statements]


  • Subject: Re: Since Apple Listens to this List... [Case Statements]
  • From: Matthew Smith <email@hidden>
  • Date: Wed, 13 Feb 2002 19:17:50 +1100

on 13/02/2002 18:06, Ed Stockly at email@hidden wrote:

> How would Case even look in appleScript?
>
> case x then
> y
> break
> case z then
> handlerCall(z)
> break
> end case

Well in SQL one of the forms of case, that looks quite like AppleScript is:

case x
when y then
doSomething
when z then
doSomethingElse
else
doAnotherThing
end case

--
Matthew Smith
_______________________________________________
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.

References: 
 >Re: Since Apple Listens to this List... [Case Statements] (From: Ed Stockly <email@hidden>)

  • Prev by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Next by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Previous by thread: Re: Since Apple Listens to this List... [Case Statements]
  • Next by thread: Re: Since Apple Listens to this List... [Case Statements]
  • Index(es):
    • Date
    • Thread