IMP

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

Syntax

result = A IMP B

Remarks

The following table illustrates how Result is determined:

If A                     And B                    The result

is                        is                           is

True                    True                        True

True                    False                      False

False                   True                        True

False                   False                      True

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                And bit in          The result

A is                     B is                    is

0                         0                        1

0                         1                        1

1                         0                        0

1                         1                        1