Skip to main content

AND Gate

Subcategory
Automation
Width
2
Height
2
Research
Advanced Automation
Decor
-5
Decor radius
1

Overview

The AND Gate is an automation building that outputs a signal only when both of its inputs are active. In practice, it is used to combine multiple conditions into a single control signal, such as requiring two separate sensors to agree before a machine turns on. Its truth table is simple: red and red gives red, red and green gives red, green and red gives red, and green and green gives green.

Like other automation gates, it can be placed behind buildings and tiles, as well as in the same space as pipes or wires. This makes it easy to hide inside a compact control room or embed directly into a larger utility layout without blocking construction. The fourth space on its graphic has no function, and automation wires can cross through that space freely.

The AND Gate follows the same logic as a bitwise AND when used with Automation Ribbon. For example, if the first input is 4-bit RRGG and the second input is RGRG, the output is RRRG. This makes it useful not only for standard red/green automation, but also for more advanced ribbon-based systems where each bit can be treated independently.

In colony builds, the AND Gate is best used whenever a device should run only if several requirements are simultaneously met. Common uses include:

  • enabling a machine only when a room is pressurized and a storage target is full enough,
  • allowing a door or conveyor system to operate only when two separate safety checks are satisfied,
  • combining sensor outputs so that one condition cannot trigger a device by itself.

Because the gate only passes a signal when all inputs are green, it is one of the simplest ways to prevent accidental activation. It is especially effective in systems where a single green signal would be too permissive, since any red input will block the output entirely. This makes it a natural companion to sensors, timers, switches, and other automation logic.

The building is part of the core automation set and is often one of the first logic components used in early control networks. Its behavior is straightforward, but it remains useful throughout the game because it scales well from simple machine gating to more elaborate ribbon logic.

No related recipes

References to this (1)

Other entities of this type

Related pages

Last updated: