[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NOT                      Logical NOT

 NOT exp1

    NOT is a logical operator. BASIC converts the operand to an integer
    (the result of this conversion must lie within the range -32768 to
    32767, or else an Overflow error occurs), then complements each bit of
    the result. That is, each resulting 1 bit becomes a 0 bit, and each
    resulting 0 bit becomes a 1 bit. The result is an integer.

    Bitwise truth table for NOT:

                              exp1   NOT exp1
                                1       0
                                0       1

        exp1    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: AND OR XOR EQV IMP Precedence
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson