Content adapted from W3Schools.

Comparison Operators

OperatorDescriptionLogic Symbol
=Equal to=
>Greater than>
<Less than<
>=Greater than or equal to≥
<=Less than or equal to≤
<>Not equal to≠

Bitwise Operators

OperatorDescriptionLogic Symbol
&Bitwise AND⋅
|Bitwise OR; inclusive disjunction∨
^Bitwise exclusive OR; exclusive disjunction⇎ or ⊕

Logical Operators

OperatorDescriptionLogic Symbol
ALLTRUE if all subquery values meet the condition∀
ANDTRUE if all conditions are TRUE⋅
ANYTRUE if any subquery value meets the condition∃
BETWEENTRUE if operand is within a range
EXISTSTRUE if subquery returns one or more records∃
INTRUE if operand equals one of a list of values
LIKETRUE if operand matches a pattern
NOTTRUE if condition(s) is NOT TRUE~
ORTRUE if any condition is TRUE∨
SOMETRUE if any subquery value meets the condition∃

Arithmetic Operators

OperatorDescription
+Add
-Subtract
*Multiply
/Divide
%Modulo

Compound Operators

OperatorDescriptionUsage
+=Shorthand for x = x + 5Adds a value to a variable and assigns the result back to the variable. Used to increment a value in place.
-=Shorthand for x = x - 3Subtracts a value from a variable and assigns the result back. Used to decrement a value.
*=Shorthand for x = x * 2Multiplies a variable by a value and assigns the result back. Used to scale values.
/=Shorthand for x = x / 4Divides a variable by a value and assigns the result back. Used to reduce values proportionally.
%=Shorthand for x = x % 10Gets the remainder when dividing and assigns it back. Used for cyclic operations like wrapping numbers.
&=Shorthand for x = x & 0xFFUsed to clear specific bits or extract bit patterns from binary data.
^=Shorthand for x = x ^ 0x01Used to toggle or flip specific bits.
|*=Shorthand for x = x | 0x80Used to set specific bits to 1 while preserving others.