Evaluate every true-and-false assignment for a Boolean expression containing AND, OR, XOR, NOT, and parentheses.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A tokenizer recognizes variable names, parentheses, word operators, and the aliases &, |, ^, and !; recursive-descent parsing applies NOT before AND, AND before XOR, and XOR before OR. The parsed expression is evaluated for all 2ⁿ assignments from the all-true row to the all-false row.
p AND q
Table: p q | Result T T | T T F | F F T | F F F | F Variable count: 2 Row count: 4 True count: 1 False count: 3
Propositional-logic exercises classify assignments, digital-logic design checks gate combinations, and software reviews compare condition columns for logical equivalence.