Skip to content

Operators

Shaun Lawrence edited this page Aug 19, 2020 · 2 revisions

Below is the current list of supported operators.

Name Operator Usage
Add + 1 + 2
Unary plus + +2
Subtract - 1 - 2
Unary minus - -2
Multiply * 2 * 2
Divide / 2 / 2
Modulus % 6 % 2
Equals =, == 1 == 1
Not equals !=, <> 1 <> 2
Greater than > 2 > 1
Greater than or equal >= 2 >= 2
Less than < 1 < 2
Less than or equal <= 2 <= 2
Boolean NOT !, NOT !true && NOT false
Boolean AND &&, AND true && false
Boolean OR ||, OR true || false
Bitwise AND & 2 & 2
Bitwise OR | 2 | 2
Bitwise XOR ^ 2 ^ 2
Bitwise NOT ~ 2 ~ 2
Left shift << 2 << 2
Right shift >> 2 >> 2
Null Coalesce ?? null ?? 0
Clone this wiki locally