A ↔ B — truth table
coretrue on the two agreeing rows
Answer
4 rows, 2 true (0, 3)
Why this example is worth doing
The biconditional is true exactly when both sides agree, which makes it the XNOR gate under a different name and from a different course. Seeing A ↔ B, A ⊙ B and (A ⊕ B)′ produce identical columns is the cleanest way to show a discrete-maths student and a digital-logic student that they are studying the same object. The page links across to the XNOR gate page for the circuit reading, and notes that equality comparators are literally trees of these.
Try your own input in the Truth table generator. Turn an expression into a full truth table, with a column for every sub-expression.
How the answer is reached
Truth table
| # | A | B | A ↔ B |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 2 | 1 | 0 | 0 |
| 3 | 1 | 1 | 1 |