< (Less than)
Syntax
expressionLEFT < expressionRT
Description
The < (Less-than) Operator evaluates two expressions, compares them and returns the resulting condition. The condition is false (0) if the left-hand side expression is greater than or equal to the right-hand side expression, or true (1) if it is less than the right-hand side expression.
Example
The >= (Greater-than Or Equal) Operator is complement to the < (Less-than) Operator, and is functionally identical when combined with the NOT (Bit-wise Complement) Operator:
IF( 69 < 420 ) THEN PRINT "( 69 < 420 ) is true."
IF NOT( 69 >= 420 ) THEN PRINT "not( 69 >= 420 ) is true."
Differences from other BASICs
- none