Re: If Statements
Re: If Statements
- Subject: Re: If Statements
- From: Michelle Steiner <email@hidden>
- Date: Thu, 11 Sep 2008 05:50:44 -0700
On Sep 11, 2008, at 5:14 AM, William J Sisti wrote: The problem is that the script doesn’t like trying to figure out if wsisti is between 1 and 10 or 11 and 20. “Can’t make kbasovsky into type number, date or text”.
try set username to username as number if username > 0 and username < 11 then --assumes that username can be 1 --do this else if username < 20 then -- do second thing else -- handle usernames that are greater than 20 end if end if on error msg -- do third thing, username is not a number end try
-- Please contribute to the Leukemia and Lymphoma Society, and help me meet my fund raising goal for my marathon training.
|
_______________________________________________
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: | |
| >If Statements (From: William J Sisti <email@hidden>) |