Gates › Control Flow › Swap

Swap

Expression (pure) Control Flow 3 in 2 out ⬚ 1x1

Sends Inputs A and B to matching outputs or exchanges them when Swap is true, useful for reversing ordered pairs.

Diagram

Ports drawn from the source data: inputs left, outputs right, config inside.

How it's used

Structural overview — derived from this gate's ports, not from tested behavior. Takes 3 wire inputs: Swap (bool), Input A (any), Input B (any). Produces 2 outputs: Output (any), Output B (any).

No curated example for this gate yet. The shape above is accurate (from the inventory); what it does in practice should be confirmed in-game.

Technical details — ports, config & source

Wire inputs

Wires you feed into the gate.

Display name Type Tooltip
Swap (bSwap) bool No tooltip in source
Input A (InputA) any No tooltip in source
Input B (InputB) any No tooltip in source

Wire outputs

Wires the gate produces.

Display name Type Tooltip
Output any No tooltip in source
Output B (OutputB) any No tooltip in source

Source details

Brick asset
B_1x1_Gate_Expr_Swap
Component class
BrickComponentType_Expr_Swap
Kind
expr
Family
Swap
Half size
5 × 5 × 2

From logic_gate_inventory.simple.json @ 9660107, supplemented by gate_docs.json. Documented behavior, not independently tested.