In VB, the order of operation priority from high to low is: arithmetic operations, string operations, relational operations, and logical operations. The priorities decrease from top to bottom, with the topmost operator having the highest priority and the comma operator having the lowest priority. Operators with higher precedence are combined first, operators with lower precedence are combined later, and operators in the same line have the same priority.
In VB, the order of operation priority from high to low is: arithmetic operations, string operations, relational operations, and logical operations.
The priorities decrease from top to bottom, with the top one having the highest priority and the comma operator having the lowest priority.
Operators with higher priorities are combined first, and operators with lower priorities are combined later. Operators in the same line have the same priority.
From high to low are:
Arithmetic operations: - (negative) ^ (power) * or / \ Mod (rounding method) or -
Character operations Symbol: or & sibling
Relational operators: =, >, >=, , Is sibling Like operator: Like
Logical operators: from high to low Not And Or Xor Eqv Imp
The string operators are as follows:
For more related knowledge, please visitPHP中文网! !
The above is the detailed content of What is the order of operator precedence from high to low in vb?. For more information, please follow other related articles on the PHP Chinese website!