Operators

An Operator is a type of command that can be used to perform a wide variety of functions, including mathematic equations, value comparisons and logical evaluation. Each operator requires one or more Operands depending on its function. For example, the plus operator (+) requires two operands, which are the quantities being added together. Operators requiring a single operand are known as Unary operators, those with two are Binary operators, and the rare examples that require three operands are called Ternary operators.

The table below lists the various types of operators and their uses, along with a few examples:

Operator Category Category Description Examples
Comparison operators Compare a value against another or an expression = > < => <= <>
Logical Test for the truth of a condition & | !
Arithmetic operators Addition, subtraction, multiplication, division and integer division + - * / %
String Concatenation Operator Link two strings together end to end, either character or binary data &
Assignment Assign a value to a variable :=

 

<< Previous: Case Sensitivity | Next: Operator Precedence >>