Scott:
> So you are saying that if the first char of the string is a number No! There is no number. Don't think about numbers. :) Both sides are text in your comparison. > it uses the ascii value of the first char? Always! Because both sides are text. Two text strings. No numbers. LC compares the FIRST CHAR of each text. (If they are equal: then the 2nd chars, etc.) > “9foo” > 9 Because "9" = "9" ... but "f" > "". If you want a numerical comparison, both sides must be numbers! Once you have two dots, or an "f" etc, it's a string. And if either side is text, the comparison is textual. 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 use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode