Logic & Comparison
Select
Picks one of two values depending on a condition.
condition
if true
if false
Select
result
Node image coming soon
Usage
An inline ternary. Reach for it whenever you only need to choose a value — it keeps the graph flat, where an If node would fork it. Use If only when the two cases have to run different statements. Both branches must be the same type.
Inputs
| Type | Name | Description |
|---|---|---|
| bool | condition | Which branch to take. |
| any | if true | Returned when the condition holds. |
| any | if false | Returned otherwise. Same type as “if true”. |
Outputs
| Type | Name | Description |
|---|---|---|
| any | result | The chosen value. |