The Expression Designer supports the following operators:
Operator | Operator Name | Syntax | Example |
---|---|---|---|
+ | Plus Operator | +a | +1 |
- | Negation Operator (unary) | -a | -1 |
+ | Addition Operator | a + b | 1 + 2 = 3 |
- | Subtraction Operator | a - b | 2 - 1 = 1 |
* | Multiplication Operator | a * b | 2 * 2 = 4 |
/ | Division Operator | a / b | 4 / 2 = 2 |
% | Modular Operator | a % b | 5%2=1 (remainder) |
Operator | Operator Name | Syntax | Example |
---|---|---|---|
! | Logical Boolean Negation Operator (unary) | !a | ! a (not a) |
&& | Logical AND | a && b | 1 < 5 && 5 < 10 = true |
II | Logical OR | a || b | 1 < 5 || 5 > 10 = true |
= | Assignment Operator | a = b | a = 3 |
== | Equal To Operator | a == b | 3 == 3 |
!= | Not Equal To Operator | a != b | 4 != 3 |
> | Greater Than Operator | a > b | 4 > 3 |
>= | Greater Than Or Equal To Operator | a >= b | 4 >= 3 |
< | Less Than Operator | a < b | 3 < 4 |
<= | Less Than Or Equal To Operator | a <= b | 3 <= 4 |
Operator | Operator Name | Syntax | Example |
---|---|---|---|
~ | Bitwise NOT (performs logical negation on an expression by inverting the bits of a binary number) | a = ~ b |
~1 = -2 where 00000001 = 1 11111110 = -2 |
& | Bitwise AND (performs logical conjunction on two expressions) | a = b & c |
1 & 1 = True 0 & 1 = False 1 & 0 = False 0 & 0 = False |
| | Bitwise OR (performs logical disjunction on two expressions) | a = b | c |
1 | 1 = True 0 | 1 = True 1 | 0 = True 0 | 0 = False |
^ | Bitwise XOR (performs logical exclusion on two expressions) | a = b ^ c |
1 ^ 1 = False 0 ^ 1 = True 1 ^ 0 = True 0 ^ 0 = False |