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.
BASIC Truth Table for Logical Operators
  Expressions and Operators                    Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Truth Table for Logical Operators
 
Each operator returns results as indicated below. A "T" indicates a true
value and an "F" indicates a false value. Operators are listed in order of
operator precedence.
 
     Values of      Value Returned by Logical Operator
                           X    X    X     X     X
                     NOT  AND  OR   XOR   EQV   IMP
     X     Y          X    Y    Y    Y     Y     Y
     ─────────────────────────────────────────────────
     T     T          F    T    T    F     T     T
 
     T     F          F    F    T    T     F     F
 
     F     T          T    F    T    T     F     T
 
     F     F          T    F    F    F     T     T