Interpreter understands common mathematical, logical, and comparison operators. Mathematical operators can be applied to all numbers types, whereas the + operator can also be used to link strings.
Operator | Description | + | Addition of numbers and date values, linking of strings | - | Subtraction of numbers | * | Multiplication of numbers | / | Division of numbers | \, Div | Division of numbers with a whole number result (rounded) | ^ | Raising the power of numbers | Mod | Modulus operation (calculation of the remainder of a division) |
Logical operators, Or, And, Xor, allow you to link elements according to the rules of Boolean algebra. Bitwise operators treat their operands as a set of 32 bits (zeros and ones), rather than as decimal. Bitwise operators treat their operands as a set of 32 bits (zeros and ones), rather than as decimal. Operator | Usage | Description | Bitwise AND | a bAnd b | Returns 1 in each bit pos. for which corresponding bits of both operands are 1s | Bitwise OR | a bOr b | Returns 1 in each bit pos. for which corresponding bits of either or both ops are 1s | Bitwise XOR | a bXor b | Returns 1 in each bit pos. for which corr. bits of either but not both ops are 1s | Bitwise NOT | bNot(a) | Inverts the bits of its operand | Left shift | a bShl b | Shifts a in binary repr. b bits to the left, shifting in zeros from the right. | Right shift | a bShr b | Shifts a in binary representation b bits to the right, discarding bits shifted off. |
Comparison operators can be applied to all elementary variable types, including strings. Operator | Description | = | Equality | <> | Inequality | < | Less than check | > | Greater than check | <= | Less than or equal to check | >= | Greater than or equal to check |
|
|