lt (string <)
Previous  Top  Next

Syntax
a lt b

Description
This is old version of less than syntax. Although recognized this should be replaced with < syntax.

Similar to <, however it assumes that variables are strings and has String Constant Precedence. This should be used when comparing two strings.

Sample
a = "hi";
b = "there";
trace(a < b);   // returns 0 (false) as both a and b are converted to numeric and equate to equal (both 0).
trace(a le b);   // returns 1 (true) as "hi" is before "there", which is the expected result.

See Also
<