Arithmetic and text
Unary
+ leaves a Numeric or Duration unchanged. Unary - negates it.
When an arithmetic operation expects a Numeric,
null is treated as zero. Text is never converted to a number automatically; use ToNumber when conversion is intentional.Comparisons
Both operands must be comparable values of the same type. A comparison involving
null returns false, including null = null and null <> null.
Logical operators
and and or short-circuit: Dsync skips the right-hand side when the left side already determines the result.
Precedence
From highest to lowest:- Unary
not,+,- - Power
^ - Multiplication and division
*,/ - Addition, subtraction, and concatenation
+,-,& - Comparisons
=,<>,>,>=,<,<= andor