A string doesn't equal itself

Joe Lewis Wilkins pepetoo at Cox.Net
Thu Apr 12 15:29:25 EDT 2007


But Bill, did you notice THEY AREN'T THE SAME. ONE ENDS IN 1; THE  
OTHER ENDS IN 2!

Joe Wilkins

On Apr 12, 2007, at 11:58 AM, Bill Marriott wrote:

> Richard,
>
> What about
>
> put "3.141592653589793238461" is "3.141592653589793238462"
>
> Guess what Rev says? (True.) Longstanding behavior in xTalk, going  
> back to
> HyperCard days.
>
> but
>
> put "3.141592653589793238461" & null is "3.141592653589793238462" &  
> null
>
> returns false.
>
> Seems like the "best practice" right now is: to coerce string-based
> evaluation over possible numeric evaluation, use the & null operation.



More information about the use-livecode mailing list