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 "<=".


/ DivisionDecimal Division
This is the normal division operator
\ DivisionInteger Division, rounded down
This operator is not available in C# or JavaScript
ANDThe logical "AND" operator (Boolean).
EQVThe logical equivalence operator.
IMPThe logical implication from two values (Variant).
ISCompares two object reference variables.
LIKEThe pattern matching operator.
MODReturns the remainder after division operator.
NOTThe logical "NOT" operator (Boolean).
ORThe logical "OR" operator (Boolean).
TYPEOFThe object data type.
XORThe logical exclusion operator.

ExpressionReturnedNotes
5 + 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)
False Or True And FalseTrueFalse Or (True And False)
False Or False And TrueTrueFalse Or (False And True)

Numbers converted to Bits
1 = 1
2 = 10
4 = 100
8 = 1000
16 = 10000
22 = 10110
87 = 1010111


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