Skip to main content
Operators combine or compare values without a function call. Parentheses make complex expressions easier to read and remove ambiguity.

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:
  1. Unary not, +, -
  2. Power ^
  3. Multiplication and division *, /
  4. Addition, subtraction, and concatenation +, -, &
  5. Comparisons =, <>, >, >=, <, <=
  6. and
  7. or
Use parentheses around each business condition, even when precedence would produce the same result.
Last modified on September 7, 2026