Operators

An operator is a symbol or word that represents an operation to be performed on one or more values.

Operator symbol Operator type Type of operands
+ - * / numeric number, float
| bitwise or number
& bitwise and number
mod numeric number
= <> > < >= <= relational number, string, char, boolean, float
and or not boolean boolean
+ concatenate string string, char, number, float, boolean
  • The operands of an operator must be of the same data type. Operands are casted automatically for string concatenations.
  • mod is the Modulo operator. The left operand of the mod operator is the dividend; the right operand is the divisor.
  • You cannot use arrays without an index in an expression.
  • Expressions with multiple and operators (or or operators) are evaluated from left to right. Evaluation for and/or stops as soon as the result is known.