Re: If Statements
Re: If Statements
- Subject: Re: If Statements
- From: "Mark J. Reed" <email@hidden>
- Date: Sat, 13 Sep 2008 07:02:32 -0400
Ed's right. It's not converting the string to a number, but the
number to a string. And "5" > "10".
On 9/13/08, Ed Stockly <email@hidden> wrote:
>>
>> You said:
>> If (username > 1 and username <10)
>> wouldn't work, were username a string.
>>
>> Tim says it works and so do I.
>
> set userName to 5
> (userName > 1 and userName < 10)
> -->>true
> set userName to "5"
> (userName > 1 and userName < 10)
> -->>false
>
> Do you get different results?
>
> ES
>
> _______________________________________________
> 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
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <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