RE: Short form
RE: Short form
- Subject: RE: Short form
- From: "Script2" <email@hidden>
- Date: Fri, 5 Sep 2008 14:51:51 -0400
- Importance: Normal
Hi Philip
Is this
set sn to "CN"
sn is in {"AN", "BN", "DN", "EN", "FN"}
same as
If sname = "CN" or sname = "DD" or
sname = "DR" or sname = "FM" then (I have
about 10 names to check)?
Ruby
-----Original Message-----
From: Philip Aker
[mailto:email@hidden]
Sent: Friday,
September 05, 2008 1:42 PM
To: Script2
Cc: 'AppleScript List'
Subject: Re: Short form
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)
sn is in {"AN", "BN", "DN", "EN", "FN"}
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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