Operators

This topic describes operators used in expressions.

The following operators can be used in the expression syntax (in ascending order of priority):

Symbol Description Result type Operands type
?: Conditional select Same as operand
  • 1 — Boolean
  • 2, 3 — Any
| Logical OR Boolean Boolean
& Logical AND Boolean Boolean
= Equal to Boolean Any
== Equal to Boolean Any
!= Not equal to Boolean Any
> Greater than Boolean Integer or string
< Less than Boolean Integer or string
>= Greater than or equal to Boolean Integer or string
<= Less than or equal to Boolean Integer or string
+ Add or concatenate Same as operand Integer or string
- Subtract Integer Integer
* Multiply Integer Integer
/ Divide Integer Integer
! Logical NOT (negation) Boolean Boolean
+ Plus (unary) Integer Integer
- Minus (unary) Integer Integer
(expression) Parentheses Same as operand Any