Purpose |
The IMP operator works as both a logical and a bitwise arithmetic operator. |
|||||||||||||||||||
Syntax |
p IMP q | |||||||||||||||||||
Remarks |
IMP as a logical operator The IMP operator returns FALSE (zero) if and only if its first operand is TRUE (non-zero), and its second operand is FALSE. In all other cases, it returns TRUE.
Using IMP as a bitwise arithmetic operator IMP is seldom used as a bitwise arithmetic operator, but here is a sample: |
|||||||||||||||||||
See also |
Arithmetic Operators, AND, EQV, ISFALSE, ISTRUE, NOT, OR, XOR |