The NAND gate or logic element is a boolean Logic gate.

A NAND Logic Gate Symbol

It is a negated AND or NOT AND gate, and is actually very simple to create with simple electronics. It is basically the AND gate with an inverted output. The first chip in the 7400 series, the 7400 itself, is indeed a quad NAND gate.

Truth Table

a b c (output)
0 0 1
0 1 1
1 0 1
1 1 0

74HC10D Nand Gates on the Lego RCX