• 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: Short form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Short form


  • Subject: Re: Short form
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 5 Sep 2008 10:43:00 -0700

On Sep 5, 2008, at 10:35 AM, Script2 wrote:

Is there a short form for writing this "if" statement

If sname = "CN" or sname = "DD" or sname = "DR" or sname = "FM" then (I have
about 10 names to check)


if sname is in {"CN", "DD", "DR"} then
	-- do something
else
	-- do something else
end if

--
Please contribute to the Leukemia and Lymphoma Society, and help me meet my fund raising goal for my marathon training.
<http://www.active.com/donate/tntdms/tntdmsMSteine>





_______________________________________________ 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
  • Follow-Ups:
    • RE: Short form
      • From: "Script2" <email@hidden>
References: 
 >Short form (From: "Script2" <email@hidden>)

  • Prev by Date: Re: Short form
  • Next by Date: Dialog command
  • Previous by thread: Re: Short form
  • Next by thread: RE: Short form
  • Index(es):
    • Date
    • Thread