Operator | Operation | Description |
+ | Addition | Returns a decimal, float or an integer according to the operands, or concatenation in the case of string operands |
- | Subtraction | Returns a decimal, float or an integer according to the operands |
% | Modulus | Returns an integer and is a valid operator only for integers |
/ | Division | Returns a decimal, float or an integer according to the operands |
* | Multiplication | Returns a decimal, float or an integer according to the operands |
> | Greater than | Returns a boolean value indicating whether the condition expressed is true or false |
< | Less than | Returns a boolean value indicating whether the condition expressed is true or false |
>= | Greater than or equal to | Returns a boolean value indicating whether the condition expressed is true or false |
<= | Less than or equal to | Returns a boolean value indicating whether the condition expressed is true or false |
= | Equivalence | Returns a boolean value indicating whether the condition expressed is true or false |
!= | Not equals | Returns a boolean value indicating whether the condition expressed is true or false |
or | Logical or, Bitwise or | On boolean types, On integers |
and | Logical and, Bitwise and | On boolean types, On integers |
xor | Logical xor, Bitwise xor | On boolean types, On integers |
not | Logical not | On boolean types |