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 AInput BOutput (A NAND B)
001
011
101
110

If the inputs are not both true.