VB operator priority
VB operator priority describes the order in which operations are performed when a computer calculates an expression. Operations with higher priority are performed first, and then operations with lower priority are performed. For example, we often say that multiplication and division are performed first, and then addition and subtraction operations are performed.
Arithmetic Operators | Comparison Operators | Logical Operators | |||
---|---|---|---|---|---|
Symbol | Description | Symbol | Description | Symbol | Description |
^ | 求幕 | = | 等 | Not | Logical Not |
- | Negative sign | <> | Not equal to | And | Logical AND |
* | Multiplication | < | Less than | Or | Logical OR |
/ | Division | > | Greater than | Xor | Logical XOR |
Mod | Remainder | <= | Less Than or Equal To | Eqv | Logical Equivalence |
+ | Plus | Is | Object Reference Comparison | ||
- | Minus | ||||
& | String Link |