The table below lists and describes comparison, arithmetic and conditional operators.
Operator | General description, example use | |
Comparison operators | ||
> | Comparison operator – greater. See example in Description of operators section. | |
< | Comparison operator – greater. See example in Description of operators section. | |
Arithmetic operators | ||
+ | Addition. Example use:
| |
- | Subtraction. Example use:
| |
* | Multiplication. Example use:
| |
/ | Division. Example use:
| |
% | Remainder after integer division. Example use.
| |
( ) | Group of arithmetic operators. Example use.
| |
Logical operators | ||
&& | Logical AND operator. Example use:
| |
! | Logical inversion operator. Example use:
|