Re: If Statements
Re: If Statements
- Subject: Re: If Statements
- From: Tim Mansour <email@hidden>
- Date: Fri, 12 Sep 2008 11:31:32 +1000
On 12/09/2008, at 2:02 am, Ed Stockly wrote:
if class of userName is in {"Text", "string"} then
do the string thing
else If (username > 1 and username <10)
do this
Else if (username > 11 and username < 20)
do this other thing
Else
do this third thing
End if
That's probably not going to work Ed becuase I suspect userName is
always a string. Trying to coerce to a number is more sensible, as per
Matthew's solution (or using "userName as number" as the try statement).
--
Tim Mansour <email@hidden>
_______________________________________________
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