I’m still a little unclear about exactly what is going on here. put “foo” < 9 -- returns “false” put “foo” > 9 -- returns “true”
put “9foo” < 9 -- returns “false” put “9foo” > 9 -- returns “true” put “9.foo” < 9 -- returns “false” put “7.foo” < 9 -- returns “true” put “77.foo” < 9 -- returns “true” put “9.foo” > 9 -- returns “true” put “7.foo” > 9 -- returns “false” put “77.foo” > 9 -- returns “false” -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email [email protected] booth 1-360-734-4701 ——————————————————————————— > On Dec 28, 2021, at 9:27 AM, Curry Kenworthy via use-livecode > <[email protected]> wrote: > > > Scott: > > > why "9.6.6-rc-1” evaluates as not less than 5 > > but "10.0.0-dp-1” evaluates to less than 5. > > That's the tricky thing about dotted versions; > easy to forget and set up a text comparison: > > "9" > "5" > "1" < "5" > > Once you have two dots, or an rc/dp, it's a string. > They seem to compare perfectly...until you pass 9. > That's why I used integer versions for some libs. > > "10.0.0" < "5" > > (I should check my code too; thanks for this reminder!) > > Best wishes, > > Curry Kenworthy > > WordLib: Import MS Word and OpenOffice documents in LiveCode! > http://livecodeaddons.com/wordlib.html > > Christian LiveCode Training and Consulting > http://livecodeconsulting.com/ _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
