Gates ›
Control Flow ›
Select
Select
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.
- Choose a color/speed/target by a flag
- Clamp-free min/max picks
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.
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