AND gate

The output is 1 only when every input is 1.

Truth table

ABY
000
010
100
111

Pins

2–8 inputs on the left (select it and use + / − to change), one output on the right.

How to use it

“Both must be true” conditions, masking bits to 0, the half-adder carry C = A·B.

Usage example

Two switches go into the AND gate's inputs and the output drives an LED. The LED lights only when both A and B are 1 (both are on here).

Common mistakes

An unconnected input counts as 0, so a single floating pin forces an AND gate's output to 0.

Try this circuit in Norro

Related parts(Logic gates)

← All parts