• 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: evalhate without parsing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: evalhate without parsing?


  • Subject: Re: evalhate without parsing?
  • From: Robert Poland <email@hidden>
  • Date: Thu, 02 May 2013 15:50:45 -0600

On May 2, 2013, at 3:34 PM, Christopher Stone <email@hidden> wrote:

> On May 02, 2013, at 16:22, Robert Poland <email@hidden> wrote:
>> set strA to "Smile 3.6.1 (build 710) full edition"
>> set strB to "Smile 3.7.0 (build 768) full edition"
>>
>> strA > strB -->false
>> strB > strA -->true
> ______________________________________________________________________
>
> Hey Bob,
>
> And your point is?
>
> "a" > "b"
> --> false
>
> "b" > "a"
> --> true
>
> You are NOT comparing numerical values.  You're comparing string values, and those have different rules.
>
> 10 = "10"
> --> false
>
> 10 > "10"
> --> false
>
> 10 < "10"
> --> false
>
> 10 = "10" as integer
> --> true
>
> So what exactly are you trying to do?
>
> --
> Best Regards,
> Chris

My point is that comparing LIKE strings with embedded UNLIKE numbers seem to respond to the embedded numbers.

Robert Poland - Fort Collins, CO




 _______________________________________________
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

  • Follow-Ups:
    • Re: evalhate without parsing?
      • From: Christopher Stone <email@hidden>
References: 
 >evalhate without parsing? (From: Robert Poland <email@hidden>)
 >Re: evalhate without parsing? (From: Christopher Stone <email@hidden>)
 >Re: evalhate without parsing? (From: Christopher Stone <email@hidden>)
 >Re: evalhate without parsing? (From: Robert Poland <email@hidden>)
 >Re: evalhate without parsing? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: evalhate without parsing?
  • Next by Date: Re: evalhate without parsing?
  • Previous by thread: Re: evalhate without parsing?
  • Next by thread: Re: evalhate without parsing?
  • Index(es):
    • Date
    • Thread