NAND gate
A NAND logic gate is a combination of an aND gate followed by a nOT gate. In other words, it’s an inverted aND gate.
A NAND gate will output a 0 only when both of its input signals are 1.
In all other cases, it will output a 1.
truth-table
The truth table for it looks like:
| Input A | Input B | Output (A NAND B) |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
If the inputs are not both true.