Logic gate
Using the image at the right, if A and B are both in an On state, the output (out) will be an On state. If either A or B is in an Off state, the output will also be in an Off state. A and B must be On for the output to be On.