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)
/ DivisionDecimal Division (10 / 3)
This is the normal division operator
\ DivisionInteger Division (9 \ 3), rounded down
This operator is not available in C# or JavaScript
Exponentiation(3 ^ 3)
MODReturns the remainder after division operator (12 Mod 3)

Logical Operators

ANDThe logical "AND" operator (Boolean).
ORThe logical "OR" operator (Boolean).
NOTThe logical "NOT" operator (Boolean).
EQVThe logical equivalence operator.
IMPThe logical implication from two values (Variant).
XORThe logical exclusion operator.

LIKEThe pattern matching operator.
ISCompares two object reference variables.
TYPEOFThe object data type.

Comparison

SymbolOperatorNotes
=Equal toReturns 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 toReturns True if what is on the left is not equal to what is on the right.
>Greater thanReturns True if what is on the left is greater than what is on the right.
<Less thanReturns True if what is on the left is less than what is on the right.
>=Greater than or equalReturns True if what is on the left is greater than or equal to what is on the right.
<=Less than or equalReturns True if what is on the left is less than or equal to what is on the right.
IsReference equityReturns 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.

OrderSymbolOperator
1^Exponentiation
2-Negation
3*Multiplication
3/Division with Decimal result
4\Division with Integer result
5ModModulo
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
9NOTNot
10ANDAnd
11OROr
12XORExclusive OR
13EQVEquivalence
14IMPImplication

Examples

ExpressionReturnedNotes
5 + 5 * 10 - 5505 + (5 * 10) - 5
5 + 510Returns Integer
Null * NullNull 
Null * 10Null 
10 * NullNull 
Empty * Empty0 
Empty * 100 
10 * Empty0 
3 < 5True 
3 < 2False 
"a" < "z"True 
"z" < "a"False 
"A" < "a"True 
"200" < "21"True 
"First" & "Second""FirstSecond"Returns String
Null & NullNull 
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 TrueTrue(True And True) Or True
True And True Or FalseTrue(True And True) Or False
True And False Or TrueTrue(True And False) Or True
True And False Or FalseFalse(True And False) Or False
False And False Or FalseFalse(False And False) Or False
False And False Or TrueTrue(False And False) Or True
False And True Or FalseFalse(False And True) Or False
False And True Or TrueTrue(False And True) Or True
True Or True And FalseTrueTrue Or (True And False)
True Or False And TrueTrueTrue Or (False And True)
Operators-ComparisonTrueFalse Or (True And False)
False Or False And TrueTrueFalse Or (False And True)

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext