bas7qck.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.
NOT Operator
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
result = NOT numeric-expression
 
    ■ The logical-complement operator evaluates each bit in
      numeric-expression, then sets the corresponding bit in the result
      according to the following table:
 
        ═════════════════         ═════════════
        Bit in expression         Bit in result
        ═════════════════         ═════════════
                1                       0
                0                       1
        ═════════════════         ═════════════
 
    ■ This inverts the bit values of any variable. If an integer variable has
      the value 0 (false), the variable becomes -1 (true), and vice-versa.