Operators
The following table describes the built-in operators, which are used for arithmetic operations and logical comparisons. Some built-in operators may be overridden depending on scripting language choice, as noted.
Operator | Description |
---|---|
- | Negation |
* | Multiplication |
/ | Division |
\ | Integer Division |
% | Modulus |
+ | Addition |
- | Subtraction |
+ | String Concatenation |
== | Equal Comparison |
= | Assignment |
!= | Not Equal Comparison |
< | Less Than |
> | Greater Than |
<= | Less Than or Equal To |
>= | Greater Than or Equal To |
! | Logical NOT |
&& | Logical AND |
|| | Logical OR |
( and ) | Parenthesis, to manage precedence |
You may represent true and false values as True and False.