Gates › Control Flow › Select

Select

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

Outputs Input A normally or Input B when Select B is true, useful for choosing a value with a condition.

Diagram

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

How it's used

Pick between two values based on a condition — an inline if/else for data.

Pick the smaller of two values

let bigger = Select(x > y, y, x)
// cond false -> first value, cond true -> second value

Documented: returns a when false, b when true.

Example grounded in the wirescript built-ins docs (documented behavior). Wirescript is the community language; in-game you wire the equivalent gates by hand, and names can differ from the UI label.

Wire inputs

Wires you feed into the gate.

Display name Type Tooltip
Select B (bSelectB) 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

Source details

Brick asset
B_1x1_Gate_Expr_Select
Component class
BrickComponentType_Expr_Select
Kind
expr
Family
Select
Half size
5 × 5 × 2

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