The function of Xor operator in VBS
This article mainly introduces "the function of Xor operator in VBS". In daily operation, I believe that many people have doubts about the role of Xor operator in VBS. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the role of Xor operator in VBS". Next, please follow the editor to study!
Perform a logical XOR operation on two expressions.
Result = expression1 Xor expression2
Parameter result
Any numeric variable.
Expression1
Any expression.
Expression2
Any expression.
Description
If there is one and only one expression is True, result is True. However, if either expression is Null, result is also Null. If neither expression is Null, determine the result based on the following table:
If expression1 is expression2, result is TrueTrueFalseTrueFalseTrueFalseTrueTrueFalseFalseFalse
The Xor operator can also perform a bit-by-bit comparison of the same bits in two numeric expressions and set the corresponding bits in result according to the following table:
If the bit in expression1 is the bit in expression2, then result is 000011101110, so the study on "the role of Xor operator in VBS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!