Programming Reference Manual
 
Syntax
 
Not And Or Xor Eqv Imp
Description
These operators are available for numbers n1 and n2 or strings s1 and s2. If any value in an expression is Null then the expression's value is Null. The order of operator evaluation is controlled by operator precedence.
 
Operator
Description
Not n1 
Bitwise invert the integer value of n1. Only Not True is False.
n1 And n2 
Bitwise and the integer value of n1 with the integer value n2.
n1 Or n2 
Bitwise or the integer value of n1 with the integer value n2.
n1 Xor n2 
Bitwise exclusive-or the integer value of n1 with the integer value n2.
n1 Eqv n2 
Bitwise equivalence the integer value of n1 with the integer value n2 (same as Not (n1 Xor n2)).
n1 Imp n2 
Bitwise implicate the integer value of n1 with the integer value n2 (same as (Not n1) Or n2).
See Also
 
Example
 
Sub Main
N1 = 10
N2 = 3
Debug.Print N1 And N2 ' 2
Debug.Print N1 Or N2 ' 11
Debug.Print N1 Xor N2 ' 9
Debug.Print N1 Eqv N2 ' -10
Debug.Print N1 Imp N2 ' -9
End Sub