Logic gate
Logic gates are mysterious living doors that only open when their personal condition is satisfied. Their closest relatives are bridge trolls, despite the low phenotypic similarity. When opened, the player moves on to the next level. Logic gates can be made out of just about anything, including this wiki.

The below are interactive. Click the inputs to flip their bits!
Standard
AndThe and gate only outputs true if all of its inputs are true. 0 1 & 0 1 = 0 1 OrThe or gate only outputs false if all of its inputs are false. If any one of them are true, the gate outputs true. 0 1 | 0 1 = 0 1 XorThe xor gate is the gate with the coolest name only outputs false if all of its inputs are either false or true. As long as they're not the all same, the gate outputs true. 0 1 ^ 0 1 = 0 1 NotThe not gate or "inverter" outputs the opposite of its input. !0 !1 = 0 1 |
NandThe nand gate is the evil counterpart to the and gate; it only outputs false when all of its inputs are true. All logic gates can be constructed out of only the nand gate, rendering it the only necessary one. 0 1 !& 0 1 = 0 1 NorThe nor gate is the or gate's evil counterpart and does the opposite of what the or gate does. All logic gates can be constructed out of only the nor gate, rendering it the only necessary one. 0 1 !| 0 1 = 0 1 XnorXnorty pig, you're not a logic gate, and people hate the fact that you constantly output true when your inputs are the same. 0 1 !^ 0 1 = 0 1 BufferThe buffer outputs the same as its input. 0 1 = 0 1 |
Secret
They don't normally teach you about these ones because they're too powerful for normal use.
Never
The never gate always outputs false.
0 1 @ 0 1 = 0
Always
The always gate always outputs true.
0 1 $ 0 1 = 1
Imply
0 1 <= 0 1 = 0 1
Nimply
0 1 > 0 1 = 0 1
Triple And
"Hey isn't this just two and gates" WRONG. It's WAY cooler.
0 1 & 0 1 & 0 1 = 0 1
Swap
0 1 × 0 1 = 0 1 0 1
Snwap
0 1 !× 0 1 = 0 1 0 1
Half adder
Does this count as a gate? I think it does.
0 1 + 0 1 = 0 1 0 1
Half nadder
Evil half adder.
0 1 !+ 0 1 = 0 1 0 1
Ralph Nader
I used to go to a human school, where everyone was the same.
Now I go to a logic gate school because Nader's my last name! |
Full adder
This one takes a carry in too.
0 1 + 0 1 + 0 1 = 0 1 0 1
Wrong full adder
stupid
0 1 !+ 0 1 - 0 1 = 1 0 1 0
Common European adder
This unique gateway is inhabited by a venomous viper.
Nnot
The nnot gate or ninverter outputs the inverse of the not gate.
!!0 !!1 = 0 1
| “ | Sega does what Ninverter. | ” | |
| — Blocky | |||
Correlation
0
1
&
0
1
=
1
In popular culture
- Logic gates are the gateway to the frontal lobe.
- They were invented in Minecraft.
- The alchemy system in Homestuck and eee.io/npc uses the and and or gates as different methods of combining items within punch cards.
- Logic gates are often found next to reasoning gates.
- Logic gates are often confused with the evil illogic gates, which disobey user input and choose operations at random.
- Logic gates are for nerds, so normal people don't use them.
- Normal people are big fans of Algebra, which sometimes uses logic gates. Hypocrites!