• 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: 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.

  • Follow-Ups:
    • Re: Since Apple Listens to this List... [Case Statements]
      • From: Chris Page <email@hidden>
    • Re: Since Apple Listens to this List... [Case Statements]
      • From: Applescript User Lewis <email@hidden>
References: 
 >Re: Since Apple Listens to this List... [Case Statements] (From: Applescript User Lewis <email@hidden>)

  • Prev by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Next by Date: [OFF] Musical Scripters (was: monthNumber)
  • 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