This operator performs a logical Exclusive Or comparison between two expressions to the left and right of the operator.
Example
Dim V1 As Long, V2 As Long, V3 As Long
V1 := 7
V2 := 2
V3 := (V1 BXOr V2)
Result:
V3 contains a value of 0 (False)
Declaration:
V1 contains a nonzero value (True)
V2 contains a nonzero value 0 (True)
V3 thus receives the untruth value (False)
V1 |
V2 |
V3 (Result) |
0 |
0 |
0 (False) |
<> 0 |
0 |
-1 (True) |
0 |
<> 0 |
-1 (True) |
<> 0 |
<> 0 |
0 (False) |