qb45qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
IMP Operator
IMP Logical Operator
 
Syntax
  result = numeric-expression1 IMP numeric-expression2
 
The logical-implication operator, IMP, compares corresponding bits in
numeric-expression1 and numeric-expression2, and then sets the
corresponding bit in the result according to the following table:
 
──────────────────────────────────────────────────────────────────
Bit in First Expression   Bit in Second Expression   Bit in Result
──────────────────────────────────────────────────────────────────
       1                         1                          1
       1                         0                          0
       0                         1                          1
       0                         0                          1
──────────────────────────────────────────────────────────────────