A string doesn't equal itself
Mark Smith
mark at maseurope.net
Mon Apr 9 05:26:24 EDT 2007
And just for completeness, this also return false:
put "09114E715806" is "09114E715806" (I wondered if 'is' instead of
'=' might produce a different result).
Best,
Mark
On 9 Apr 2007, at 07:00, Ken Ray wrote:
> On Sun, 8 Apr 2007 22:16:32 -0700, Mark Wieder wrote:
>
>> string that represented a serial number she allowed the engine to
>> process the equality operator numerically. And gave it values beyond
>> those it could be expected to handle with a default margin of error.
>
> Actually, Mark, this was her post:
>
>> put "09114E715806" = "09114E715806"
>
> So she *did* quote it. I'd agree with you if it weren't quoted, but as
> it was, I would expect this to be interpreted as a string and not a
> number.
>
> Just my 2 cents,
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list