Logical connectives
The basic logical connectives are AND (conjunction), OR (disjunction), NOT (negation), XOR (exclusive or), conditional (if-then), and biconditional (if and only if). Each connective has a specific truth-value pattern. AND is true only when both operands are true. OR is true when at least one operand is true. NOT inverts the truth value.
A truth table with n variables has 2^n rows. Two variables produce 4 rows, three produce 8, and four produce 16. The generator creates all rows automatically and evaluates the expression for each combination.