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 "<=".
/ Division | Decimal Division This is the normal division operator |
\ Division | Integer Division, rounded down This operator is not available in C# or JavaScript |
AND | The logical "AND" operator (Boolean). |
EQV | The logical equivalence operator. |
IMP | The logical implication from two values (Variant). |
IS | Compares two object reference variables. |
LIKE | The pattern matching operator. |
MOD | Returns the remainder after division operator. |
NOT | The logical "NOT" operator (Boolean). |
OR | The logical "OR" operator (Boolean). |
TYPEOF | The object data type. |
XOR | The logical exclusion operator. |
Expression | Returned | Notes |
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) |
False Or True And False | True | False Or (True And False) |
False Or False And True | True | False 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