Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the VBScript operator

Shulou Source: shulou.com Published: 2022-06-03 08:37:54 10月03日 Update

This article focuses on "what is the VBScript operator". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "what is the VBScript operator"?

VBScript has a complete set of operators, including arithmetic operators, comparison operators, join operators, and logical operators.

Operator precedence

When an expression contains multiple operators, each part is evaluated in a predetermined order, which is called operator precedence. You can use parentheses to cross this order of precedence and force some parts of the expression to be evaluated first. When operating, always execute the operators in parentheses before the operators outside the parentheses. However, the standard operator precedence is still followed in parentheses.

When an expression contains multiple operators, the arithmetic operator is evaluated first, then the comparison operator is evaluated, and finally the logical operator is evaluated. All comparison operators have the same priority, that is, the comparison operators are calculated from left to right. The precedence of arithmetic and logical operators is as follows:

Arithmetic operator comparison operator logical operator

Description symbol

Power ^ equals = logical non-Not

Minus sign-not equal to logic and And

Multiply * less than logical XOR Xor

Divider\ less than or equal to = logical implied Imp

Add + object reference to compare Is

Minus-

String concatenation &

When the multiplication sign and division sign appear in the same expression at the same time, the multiplication and division operators are calculated from left to right. Similarly, when addition and subtraction appear in the same expression at the same time, the addition and subtraction operators are calculated from left to right.

The string concatenation (&) operator is not an arithmetic operator, but it comes after all arithmetic operators and before all comparison operators in precedence order. The Is operator is an object reference comparison operator. It does not compare objects or their values, but simply checks to determine whether two object references refer to the same object.

At this point, I believe that you have a deeper understanding of "what is the VBScript operator", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Operations operators logic order precedence objects arithmetic expressions parentheses symbols content simultaneously characters strings middle time learning practical deeper same two Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi OPPO Reno macOS Huawei Xiaomi