Logic gates process true and false values. They take one or more inputs and produce a single output. These gates can be used to build more complex systems that perform calculations and can control other devices.
Example: an and gate takes two inputs. Only if both inputs are true will the output also be true.
../sets/images/gate.js?t=and&tchg=1&n=0&nchg=1