Operators
Below, the possible operators are displayed in order of priority. The read order is always left to right.
| Operator: | Description: | |||
|---|---|---|---|---|
|
() |
Makes that the operation that is placed in between is executed first, before using its |
|||
|
** |
Takes the right value as exponent for the left value and calculates the result. | |||
|
Use: |
Operation: |
Resulttype: | ||
|
<Integer> ** <Integer> |
<Integer> | |||
|
<Integer> ** <Numeric> |
<Numeric> | |||
|
<Numeric> ** <Integer> |
<Numeric> | |||
|
<Numeric > ** <Numeric> |
<Numeric> | |||
|
Priority no: |
1 |
|||
|
Example: |
|
|||
| * | Multiplies two operands. | |||
|
Use: |
Operation: |
Resulttype: | ||
|
See "**" |
See "**" | |||
|
Priority no: |
2 |
|||
|
Example: |
|
|||
| / | Divides the left operand by the right operand. | |||
|
Use: |
Operation: |
Resulttype: | ||
|
See "**" |
<Numeric> | |||
|
Priority no: |
2 |
|||
|
Example: |
|
|||
|
MOD |
Calculates the remainder (modulus) when the left operand is divided by the right operand. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
See "**" |
See "**" | |||
|
Priority no: |
2 |
|||
|
Example: |
|
|||
| + |
When using strings and/ or alphanumerics: When using integers and/ or numerics for both operands: Please note that the following assignment:
can be abbreviated to:
This abbreviation is only supported if there is a single variable on either side of the +
operator. Please also note that when using multiple consecutive + signs in an expression,
the expression will be evaluated from left to right (with the exception of the usage of
parenthesis). where a is an alpha and n1 and n2 are numerics, the first + sign will lead to
the addition of n1 and n2and the second and third will lead to the concatenation of a and n1 as alpha. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
<Alpha> + <Alpha> |
<Alpha> | |||
|
<Alpha> + <Integer> |
<Alpha> | |||
|
<Alpha> + <Numeric> |
<Alpha> | |||
|
<Alpha> + <String> |
<Alpha> | |||
|
<Integer> + <Alpha> |
<Alpha> | |||
|
<Integer> + <Integer> |
<Integer> | |||
|
<Integer> + <Numeric> |
<Numeric> | |||
|
<Integer> + <String> |
<String> | |||
|
<Numeric> + <Alpha> |
<Alpha> | |||
|
<Numeric> + <Integer> |
<Numeric> | |||
|
<Numeric> + <Numeric> |
<Numeric> | |||
|
<Numeric> + <String> |
<String> | |||
|
<String> + <Alpha> |
<String> | |||
|
<String> + <Integer> |
<String> | |||
|
<String> + <Numeric> |
<String> | |||
|
<String> + <String> |
<String> | |||
|
Priority no: |
3 |
|||
| Example: |
|
|||
| & |
Concatenates the operands. In contradiction with the function "+", no count operation will occur regardless of the data types. If numerics, integers and/or booleans are used in these operations, these parameters
Please note that the following assignment:
can be abbreviated to:
|
|||
|
Use: |
Operation: |
Resulttype: | ||
|
<Alpha> & <Alpha> |
<Alpha> | |||
|
<Alpha> & <String> |
<Alpha> | |||
|
<String> & <Alpha> |
<String> | |||
|
<String> & <String> |
<String> | |||
|
Priority no: |
3 |
|||
| Examples: |
|
|||
| - |
Subtracts the right value from the left value. Please note that the following assignment: can be abbreviated to:
This abbreviation is only supported if there is a single variable on either side of the -
operator. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
<Integer> - <Integer> |
<Integer> | |||
|
<Integer> - <Numeric> |
<Numeric> | |||
|
<Numeric> - <Integer> |
<Numeric> | |||
|
<Numeric> - <Numeric> |
<Numeric> | |||
|
Priority no: |
3 |
|||
| Example: |
|
|||
| = | Evaluates "True" if the left and the right operand in a condition are equal. | |||
|
Use: |
Operation: |
Resulttype: | ||
|
<Alpha> = <Alpha> |
<Boolean> | |||
|
<Alpha> = <Integer> |
||||
|
<Alpha> = <Numeric> |
||||
|
<Alpha> = <String> |
||||
|
<Boolean> = <Boolean> |
||||
|
<Integer> = <Alpha> |
||||
|
<Integer> = <Integer> |
||||
|
<Integer> = <Numeric> |
||||
|
<Integer> = <String> |
||||
|
<Numeric> = <Alpha> |
||||
|
<Numeric> = <Integer> |
||||
|
<Numeric> = <Numeric> |
||||
|
<Numeric> = <String> |
||||
|
<String> = <Alpha> |
||||
|
<String> = <Integer> |
||||
|
<String> = <Numeric> |
||||
|
<String> = <String> |
||||
|
Priority no: |
4 |
|||
| Examples: |
|
|||
| <> |
Evaluates "True" if the left and right operand of a condition differ. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
See "=". |
See "=". | |||
|
Priority no: |
4 |
|||
| Example: |
|
|||
| < |
Evaluates "True" if in a condition the left operand is lesser than the right operand. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
See "=". |
See "=". | |||
|
Priority no: |
4 |
|||
|
Example: |
|
|||
| > | Evaluates "True" if the left operand is greater than the right operand of a condition. | |||
|
Use: |
Operation: |
Resulttype: | ||
|
See "=". |
See "=". | |||
|
Priority no: |
4 |
|||
| Example: |
|
|||
| <= |
Evaluates "True" if the left operand is lesser than or equal to the right operand of a |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
See "=". |
See "=". | |||
|
Priority no: |
4 |
|||
|
Example: |
|
|||
| >= |
Evaluates "True" if the left operand is greater than or equal to the right operand of a |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
See "=". |
See "=". | |||
|
Priority no: |
4 |
|||
|
Example: |
|
|||
| NOT |
Results in the opposite of the unary operation. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
NOT <Boolean> |
<Boolean> | |||
|
Priority no: |
5 |
|||
|
Example: |
|
|||
| AND |
Evaluates "True" if both the left and the right condition evaluate "True". |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
<Boolean> AND <Boolean> |
<Boolean> | |||
|
Priority no: |
6 |
|||
|
Example: |
|
|||
| OR |
Evaluates "True" if the left or the right condition evaluate "True". |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
<Boolean> OR <Boolean> |
<Boolean> | |||
|
Priority no: |
7 |
|||
|
Example: |
|
|||
| IN |
Evaluates "True" if the value for <Item> is found in the [<Set>]. |
|||
|
Use: |
Operation: |
Resulttype: | ||
|
<Item> IN [ <Set> ] |
<Boolean> | |||
|
<Item> |
Literal or single variable (no expression) |
|||
|
<Set> |
<Item>|<Range> [,<Set>]may not be specified through a variable. |
|||
|
<Range> |
<Item>..<Item> | |||
|
Priority no: |
8 |
|||
| Examples: |
|
|||
| LIKE* | Evaluates "True" if the left operand matches with the right operand, which may
contain wildcards. |
|||
| Use: |
Operation: |
Resulttype: | ||
|
<Operand> LIKE <Operand>) |
<Boolean> | |||
|
<Query handler> |
Handler for executing the table - or cursor query. |
|||
|
<Operand> |
Expression. | |||
|
Priority no: |
8 |
|||
| Example: |
|
|||
*The LIKE operator is exclusively used in a WHERE clause for database transactions, in order to filter the requested data before it is sent by the database server.
