Logic gates are used in situations that have more than one input, but only one output. The output is decided by the input, or combination of inputs, with the three basic gates being the AND, OR and NOT gates.