Operators
An operator is an element that performs an operation on one or more code values.
Relational operators are used to compare values and are evaluated from left to right.
If you type in "=<" or "=>" then it will be automatically changed to ">=" or "<=".
Arithmetic Operators
| + (plus) | Addition (3 + 3) |
| - (minus) | Subtraction (6 - 3) |
| * (multiply) | Multiplication (3 * 2) |
| / Division | Decimal Division (10 / 3) This is the normal division operator |
| \ Division | Integer Division (9 \ 3), rounded down This operator is not available in C# or JavaScript |
| Exponentiation | (3 ^ 3) |
| MOD | Returns the remainder after division operator (12 Mod 3) |
Logical Operators
| AND | The logical "AND" operator (Boolean). |
| OR | The logical "OR" operator (Boolean). |
| NOT | The logical "NOT" operator (Boolean). |
| EQV | The logical equivalence operator. |
| IMP | The logical implication from two values (Variant). |
| XOR | The logical exclusion operator. |
| LIKE | The pattern matching operator. |
| IS | Compares two object reference variables. |
| TYPEOF | The object data type. |
Comparison
| Symbol | Operator | Notes |
| = | Equal to | Returns True if what is on the left is equal to what is on the right. The equal sign is also used as the assignment operator. The compiler figures out which operator to use based on the context of the code. |
| <> | Not equal to | Returns True if what is on the left is not equal to what is on the right. |
| > | Greater than | Returns True if what is on the left is greater than what is on the right. |
| < | Less than | Returns True if what is on the left is less than what is on the right. |
| >= | Greater than or equal | Returns True if what is on the left is greater than or equal to what is on the right. |
| <= | Less than or equal | Returns True if what is on the left is less than or equal to what is on the right. |
| Is | Reference equity | Returns True if the object reference on the left is the same instance as the object reference on the right. This operator can be used with Nothing. |
Precedence
When a series of operators appear in the same expression there is a strict order in which they will be evaluated.
The rules of precedence tell the compiler which operators to evaluate first.
If several operators exist in a single expression and parentheses have not been used then the expression is evaluated in a strict order.
This order is known as operator precedence.
When operators have the same precedence they are evaluated from left-to-right.
Parentheses can obviously be used to change the order of precedence.
Operations inside parentheses are always performed before those on the outside.
| Order | Symbol | Operator |
| 1 | ^ | Exponentiation |
| 2 | - | Negation |
| 3 | * | Multiplication |
| 3 | / | Division with Decimal result |
| 4 | \ | Division with Integer result |
| 5 | Mod | Modulo |
| 6 | + | Addition |
| 6 | - | Subtraction |
| 7 | & | String Concatenation |
| 8 | = | Equal or Assignment |
| 8 | <> | Not Equal To |
| 8 | < | Less Than |
| 8 | > | Greater Than |
| 8 | <= | Less Than or Equal To |
| 8 | >= | Greater Than or Equal To |
| 9 | NOT | Not |
| 10 | AND | And |
| 11 | OR | Or |
| 12 | XOR | Exclusive OR |
| 13 | EQV | Equivalence |
| 14 | IMP | Implication |
Examples
| Expression | Returned | Notes |
| 5 + 5 * 10 - 5 | 50 | 5 + (5 * 10) - 5 |
| 5 + 5 | 10 | Returns Integer |
| Null * Null | Null | |
| Null * 10 | Null | |
| 10 * Null | Null | |
| Empty * Empty | 0 | |
| Empty * 10 | 0 | |
| 10 * Empty | 0 | |
| 3 < 5 | True | |
| 3 < 2 | False | |
| "a" < "z" | True | |
| "z" < "a" | False | |
| "A" < "a" | True | |
| "200" < "21" | True | |
| "First" & "Second" | "FirstSecond" | Returns String |
| Null & Null | Null | |
| Null & "Second" | "Second" | Returns String |
| "First" & Null | "First" | Returns String |
| Empty & "Second" | "Second" | Returns String |
| "First" & Empty | "First" | Returns String |
| 140 & "Second" | "140Second" | Returns Variant / String |
| True And True Or True | True | (True And True) Or True |
| True And True Or False | True | (True And True) Or False |
| True And False Or True | True | (True And False) Or True |
| True And False Or False | False | (True And False) Or False |
| False And False Or False | False | (False And False) Or False |
| False And False Or True | True | (False And False) Or True |
| False And True Or False | False | (False And True) Or False |
| False And True Or True | True | (False And True) Or True |
| True Or True And False | True | True Or (True And False) |
| True Or False And True | True | True Or (False And True) |
| Operators-Comparison | True | False Or (True And False) |
| False Or False And True | True | False Or (False And True) |
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext