Switch
Shows one of two branches, depending on a condition.
if, toggle, either or, condition, show when, gate, boolean- Category
- Modifiers
- Outputs
- mesh
- Runs live in
- Godot, Roblox
Win and lose banners, toggles, anything that should appear only under some condition. The condition is compared against the Threshold you set, and whichever side wins is what comes out.
Leaving one branch empty turns it into a show-when gate: the thing appears or it does not.
Inputs
| Socket | Type | Wiring |
|---|---|---|
| ifTrue | geometry, optional | |
| ifFalse | geometry, optional | |
| condition | value, optional |
Parameters
| Name | Type | Default | Available when | What it does |
|---|---|---|---|---|
| Threshold | number | 0.5 | always |
Built with this node
Nothing in the manual is built around this node yet.
See also
- indexSwitchFor more than two options.
- compareTo build the condition from something that varies.