Skip to main content

Greater Than (>)

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

Details

Greater Than tests whether the left operand is numerically greater than the right operand. ObjectScript evaluates the two operands numerically and produces a result of TRUE (1) if the left operand is numerically larger than the right operand. It produces a result of FALSE (0) if the left operand is numerically equal to or smaller than the right operand. For example:

Examples

 WRITE 15 > 15

returns 0.

 WRITE 22 > 100

returns 0.

FeedbackOpens in a new tab