The function of Or operator in VBS
This article mainly explains "the role of Or operator in VBS". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow Xiaobian's train of thought to study and learn "the role of Or operator in VBS".
Perform a logical OR operation on two expressions.
Result = expression1 Or expression2
Parameter result
Any numeric variable.
Expression1
Any expression.
Expression2
Any expression.
Description
If at least one of the two expressions is True, result is True. The following table describes how to determine result:
If expression1 is expression2, result is TrueTrueTrueTrueFalseTrueTrueNullTrueFalseTrueTrueFalseFalseFalseFalseNullNullNullTrueTrueNullFalseNullNullNullNull
The Or operator also performs a bit-by-bit comparison of the same bits in two numeric expressions and sets the corresponding bits in result according to the following table:
If the bits in expression1 are bits in expression2, then the result is 0000111011.
Thank you for reading, the above is the content of "the role of Or operator in VBS". After the study of this article, I believe you have a deeper understanding of the role of Or operator in VBS, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!