Logical and Bitwise Data Conversions

Logical/bitwise Operators (and the IF statement)

If the statement is a simple IF statement, such as:

IF ( x )

then ATEasy returns a logical (boolean) result.

If the operator is one of the following: 

and, not, or , xor,

then ATEasy expects either a logical operand or a bitwise operation.

IF (nShort and lLong)

If (obX1 = obX2) ! Result is boolean

If (Proc1 = Proc2) ! Result is boolean

IF (obA and obB)

vOne=0x05 ! vOne is declared as Variant, bit value 0000 0101

vTwo=0x10 ! vTwo is declared as Variant, bit value 0001 0000

bA=vOne ! bA is declared as Boolean

bB=vTwo ! bB is declared as Boolean

IF (bA and bB) ! is evaluated to True.

If (vOne and vTwo) ! is evaluated to False.