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