Gates ›
Control Flow ›
Swap
Swap
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).
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