| <,>, =,<=,>=,<> | Comparison Operators | Math Functions |
| The comparison operators are as follows: < less than > greater than = equals <= less than or equal >= greater than or equal <> not equals These are used in conjunction with IF, JP, JS, ( ), &, and | to perform conditional jumps | ||
| variable = value1 <,>, =,<=,>=,<> value2 | Performs an operation between two values or evaluated statements |
The comparison operators are as follows:
< less than
> greater than
= equals
<= less than or equal
>= greater than or equal
<> not equals
These are used in conjunction with IF, JP, JS, ( ), &, and | to perform conditional jumps. The result of a comparison expression can also be printed with MG or assigned to a variable.
(n < m) or (n > m) or (n = m) or (n <= m) or (n >= m) or (n <> m) where
n and m are signed numbers in the range -2147483648 to 2147483647
N/A
| Usage | Value |
|---|---|
| While Moving (No RIO) | Yes |
| In a Program | Yes |
| Command Line | Yes |
| Controller Usage | All |
| Default Value | N/A |
| Default Format | N/A |
( ) - Parentheses
IF - If statement
JP - Jump
JS - Jump subroutine
IF(x > 2) & (y = 4)
MG "true"
ENDIF ;'x must be greater than 2 and y equal to 4 for
;'the message to print