Description
Operators are language constructs within PQL that allow the access of complex functionalities while maintaining expressiveness.
Operator Precedence
If an expression contains more than one operator, the operators are evaluated in order of operator precedence. To influence the evaluation order you can use parentheses which have the highest operator precedence and are evaluated first. Operators with the same operator precedence are evaluated from left to right.Precedence | Operator | Operation |
---|---|---|
Highest | () | parentheses |
+, - | unary positive and negative operator | |
*, /, % | multiplication, division, modulo | |
+, - | addition, subtraction | |
Lowest | || | concatenation |