'Boolean refers to logical relationships - True or False, and is named
'after mathematician George Boole.
'VB supports the following Boolean opertors
Or
And
Not
Xor
'The following operators are also supported but see very little use by VB programmers
Eqv
Imp
Is
'To create a Boolean variable, use this:
Dim
X
As
Boolean
'Mathematical values used in Boolean expresssion are converted to Boolean values as follows:
0 becomes
False
all other values become
True
.
'Boolean values used in mathematical expressions are converted to mathematical values as follows:
False
becomes 0 i.e.
False
*
2
=
0
True
becomes
-
1 i.e.
True
*
5
=
-
5