<

Syntax expression1 < expression2

expression1 lessthan expression2

Action This comparison operator yields the boolean value true if the value of expression1 is less (smaller) than the value of expression2.

Examples file.size ("myFile") < 1000000

   » true

This expression evaluates to true if the file contains less than one million characters.

"abd" < "azz"

   » true

Notes There is no difference between the two forms, < and lessthan.

String comparison is carried out according to the ASCII sequence; this yields alphabetical results, but lowercase characters sort after all uppercase characters. That is, "A" < "Z" < "a" < "z".

UserTalk employs automatic type coercion when evaluating arithmetic and comparative operations; the two expressions need not be of the same type to be compared.

See Also >

>=

<=

==

!=

Discuss