NAND Gate
The logic NAND is a combination of 2 operations, NOT and AND. It involves two variables. The AND is performed 1st, and the result is negated. The value of X NAND Y is low if, but if, both X and Y is high. Else, X NAND Y is high. This is shown in the Table given below.
Figure--- Trith Table of NAND Gate