Skip to main content

Less Than (<)

Tests whether the left operand is less than the right operand, after interpreting both operands as numbers.

Details

The Less Than operator tests whether its left operand is numerically less than its right operand. ObjectScript evaluates both operands numerically and returns a Boolean result of TRUE (1) is the left operand has a lesser numeric value than its right operand. ObjectScript returns a Boolean result of FALSE (0) if the left operand has an equal or greater numeric value than the right operand. For example:

Examples

 WRITE 9 < 6

returns 0.

 WRITE 22 < 100

returns 1.

FeedbackOpens in a new tab