An operator is a set of characters that represent an action in a statement or expression. An expression is a sequence of operators and operands that specifies a computation of a value.
The following ASCII characters or character sequences represent operators.
. * + - / ^ < = > <> <= >= AND OR NOT
There are two kind of operators: unary and binary.
- Unary operators require one operand and use prefix notation (for example, x).
- Binary operators require two operands and use infix notation (for example, x + y).
NoteWith the exception of relational operators, which always result in Boolean, the type of the expression depends on the operand(s).