All BASIC commands Section 4-2
87
4-2-10 >= (Is greater than or equal to)
/i
4-2-11 < (Is less than)
/i
4-2-12 <= (Is less than or equal to)
/i
Type Mathematical function
Syntax expression1 >= expression2
Description The operator >= returns TRUE if expression1 is greater than or equal
to expression2, otherwise it returns FALSE.
Arguments • expression1
Any valid BASIC expression.
• expression2
Any valid BASIC expression.
Example IF a >=10 THEN GOTO label1
If variable a contains a value greater than or equal to 10, program exe-
cution continues at label label1. Otherwise, program execution contin-
ues with the next statement.
See also N/A
Type Mathematical function
Syntax expression1 < expression2
Description The operator < returns TRUE if expression1 is less than expression2,
otherwise it returns FALSE.
Arguments • expression1
Any valid BASIC expression.
• expression2
Any valid BASIC expression.
Example IF a < 10 THEN GOTO label1
If variable a contains a value less than 10, program execution continues
at label label1. Otherwise, program execution continues with the next
statement.
See also N/A
Type Mathematical function
Syntax expression1 <= expression2
Description The operator <= returns TRUE if expression1 is less than or equal to
expression2, otherwise it returns FALSE.
Arguments • expression1
Any valid BASIC expression.
• expression2
Any valid BASIC expression.
Example IF a <= 10 THEN GOTO label1
If variable a contains a value less than or equal to 10, program execu-
tion continues at label label1. Otherwise, program execution continues
with the next statement.
See also N/A