Operators
- Last UpdatedJun 06, 2017
- 1 minute read
An operator is a symbol used to manipulate the value of one or more operands. The following table describes the valid operators from highest precedence to lowest.
|
Operator |
Symbol |
Description |
|---|---|---|
|
Negate |
– |
Negates value of the next operand. |
|
Multiply |
* |
Multiplies values of the previous and next operands. |
|
Divide |
/ |
Divides the value of the previous operand by the next operand. |
|
Modulus |
% |
Remainder of the division between the previous operand and the next operand. |
|
Add |
+ |
Adds values of the previous and next operands. |
|
Subtract |
- |
Subtracts value of previous operand by next operand. |
|
Less Than |
< |
True if the previous operand is less than next operand; otherwise, it is False. |
|
Less Than or Equal To |
<= |
True if the previous operand is less than or equal to next operand; otherwise, it is False. |
|
Greater Than |
> |
True if the previous operand is greater than the next operand; otherwise, it is False. |
|
Greater Than or Equal To |
>= |
True if the previous operand is greater than or equal to the next operand; otherwise, it is False. |
|
Equal To |
= |
True if the previous operand is equal to the next operand; otherwise, it is False. |
|
Not Equal To |
<> |
True if the previous operand is not equal to the next operand; otherwise, it is False. |
|
And |
& |
True if the previous operand and the next operand are True; otherwise, it is False. |
|
Or |
| |
True if the previous operand or the next operand is True; otherwise, it is False. |
|
Assignment |
:= |
No usable return value. Writes the next operand to the previous operand. |