Operator | Function | Usage |
---|---|---|
^ | Exponentiation | x = y^2 |
- | Negation | x = -2 |
* | Multiplication | x% = 2 * 3 |
/ | Division | x = 10/2 |
Mod | Modulo | x = y Mod z |
+ | Addition | x = 2 + 3 |
- | Subtraction | x = 6 - 4 |
Operator | Description |
---|---|
() | parenthesis (highest precedence) |
^ | exponentiation |
- | unary minus |
/,* | division/multiplication |
mod | modulo |
+, -, & | addition, subtraction, concatenation |
=, <>, <, >,<=,>= | relational |
not | logical negation |
and | logical conjunction |
or | logical disjunction |
Xor | logical exclusion |
Eqv | logical Equivalence |
Imp | logical Implication (lowest precedence) |
Operator | Function | Usage |
---|---|---|
< | Less than | x < Y |
<= | Less than or equal to | x <= Y |
= | Equals | x = Y |
>= | Greater than or equal to | x >= Y |
> | Greater than | x > Y |
<> | Not equal to | x <> Y |
Operator | Function | Usage |
---|---|---|
Not | Logical Negation | If Not (x) |
And | Logical And | If (x> y) And (x < Z) |
Or | Logical Or | if (x = y) Or (x = z) |