• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: If Statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: If Statements


  • Subject: Re: If Statements
  • From: Skeeve <email@hidden>
  • Date: Sat, 13 Sep 2008 13:56:53 +0200

Mark J. Reed schrieb:
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?

I apologise! You're right, Ed & Mark!
_______________________________________________
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>)
 >Re: If Statements (From: Ed Stockly <email@hidden>)
 >Re: If Statements (From: Tim Mansour <email@hidden>)
 >Re: If Statements (From: Ed Stockly <email@hidden>)
 >Re: If Statements (From: Skeeve <email@hidden>)
 >Re: If Statements (From: Ed Stockly <email@hidden>)
 >Re: If Statements (From: Skeeve <email@hidden>)
 >Re: If Statements (From: Ed Stockly <email@hidden>)
 >Re: If Statements (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: If Statements
  • Next by Date: Re: set optionKeyDown to...
  • Previous by thread: Re: If Statements
  • Next by thread: Re: If Statements
  • Index(es):
    • Date
    • Thread