Re: Short form
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
References: | |
| >Short form (From: "Script2" <email@hidden>) |