NAND Gates

Before reading this page read the one on LOGIC GATES.
The Nand gate has two or more inputs and one output.
The output voltage goes low only when all input voltages are high.
In the switch diagram the lamp goes out  when A and B are operated. (A short circuit is placed across the lamp)
In the truth table Z = 0  when A and B = 1                                                  _
The Boolean expression is A.B = Z which translated says, A and B high makes Z low. 
 _  Z (called Z bar) means Z is low.
NAND GATES SYMBOLS DIAGRAM
US symbol UK symbol switches simulating NAND truth table