[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
IMP                      Implication

 exp1 IMP exp2

    IMP is a logical operator. BASIC converts each operand to an integer
    (each operand must yield an integer in the range -32768 to 32767, or
    else an Overflow error occurs), then performs a bitwise comparison of
    the results, according to the truth table below:

                     exp1  exp2     exp1 IMP exp2
                       1    1             1
                       1    0             0
                       0    1             1
                       0    0             1

    The result is an integer.

   exp1,exp2    Any expression that produces a numeric result. This
                includes Boolean expressions, where a TRUE result is
                evaluated as -1 and a FALSE result is evaluated as 0.

See Also: NOT AND OR XOR EQV Precedence
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson