Greater or equal (>=)
The >=
operator
is provided to test whether a value or expression is greater than
or equal to another.
Syntax
expr >= expr
Usage
Use the greater-or-equal operator to test if a value of the left operand is greater than or equal to the value of the right operand.
This operator applies to expressions that evaluate to primitive data types such
as INTEGER
, VARCHAR
, DATE
. It does not apply to the BYTE
and TEXT
types.
If one of the operands is NULL
, the comparison expression evaluates to
NULL
.
Example
MAIN
DEFINE n INT
LET n = 100
IF n >= 100 THEN
DISPLAY "The variable is greater than or equal to 100."
END IF
END MAIN