IMP (Imply)

The IMP operator is used to perform a logical implication on two expressions.

Syntax

Result = expression1 IMP expression2

Remarks

The following table illustrates how Result is determined:

If expression1 is And expression2 is The Result is
True True True
True False False
True Null Null
False True True
False False True
False Null True
Null True True
Null False Null
Null Null Null

The IMP operator performs a bitwise comparison of identically positioned bits in two numeric expressions and sets the corresponding bit in result according to the following table:

If Bit in
expression1 is
And Bit in
expression2 is
The Result is
0 0 1
0 1 1
1 0 0
1 1 1