
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>not logical not operator</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NOT Logical NOT Operator
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 EQV IMP OR XOR Precedence
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson