Operators
In ESDL, method calls take precedence over all other operators. The order of precedence can be manipulated by adding parentheses to an expression.
The following operator types are available:
- Unary Operators
- Arithmetic Operators
- Comparison Operators
- Verify Operation
- Logical Operators
- Conditional Operators
- Shorthand Assignment Operators
- Conversion Operations
- Assert Operation
The table summarizes the precedence and associativity of operators in ESDL.
Operator | Associativity |
++ -- | right to left |
+ - (unary) | right to left |
! | right to left |
* / % | left to right |
+ - (binary) | left to right |
< <= | left to right |
> >= | left to right |
== | left to right |
!= | left to right |
&& | left to right |
|| | left to right |
?: | right to left |
= | right to left |
*= /= %= += -= | right to left |
See also