QuickScript .NET operators
- Last UpdatedJul 22, 2024
- 1 minute read
The following QuickScript .NET operators require a single operand:
|
Operator |
Short description |
|---|---|
|
~ |
Complement |
|
- |
Negation |
|
NOT |
Logical NOT |
The following QuickScript .NET operators require two operands:
|
Operator |
Short description |
|---|---|
|
+ |
Addition and concatenation |
|
- |
Subtraction |
|
& |
Bitwise AND |
|
* |
Multiplication |
|
** |
Power |
|
/ |
Division |
|
^ |
Exclusive OR |
|
| |
Inclusive OR |
|
< |
Less than |
|
<= |
Less than or equal to |
|
<> |
Not equal to |
|
= |
Assignment |
|
== |
Equivalency (is equivalent to); not supported for entire array compares. Compare the arrays one element at a time using ==. |
|
> |
Greater than |
|
>= |
Greater than or equal to |
|
AND |
Logical AND |
|
MOD |
Modulo |
|
OR |
Logical OR |
|
SHL |
Left shift |
|
SHR |
Right shift |
The following table shows the precedence of QuickScript .NET operators:
|
Precedence |
Operator |
|---|---|
|
1 (highest) |
( ) |
|
2 |
- (negation), NOT, ~ |
|
3 |
** |
|
4 |
*, /, MOD |
|
5 |
+, - (subtraction) |
|
6 |
SHL, SHR |
|
7 |
<, >, <=, >= |
|
8 |
==, <> |
|
9 |
& |
|
10 |
^ |
|
11 |
| |
|
12 |
= |
|
13 |
AND |
|
14 (lowest) |
OR |
The arguments of the listed operators can be numbers or attribute values. Putting parentheses around an argument is optional. Operator names are not case-sensitive.