Control Flow
If
Runs one of two branches depending on a boolean condition.
In
condition
If
If true
If false
When finished
Node image coming soon
Usage
Exactly one of the first two outputs runs. The third runs afterwards either way, so put whatever follows the decision there rather than duplicating it at the end of both branches. If you only need to pick between two values, a Select node is simpler.
Inputs
| Type | Name | Description |
|---|---|---|
| flow | In | Runs the check. |
| bool | condition | Decides which branch runs. |
Outputs
| Type | Name | Description |
|---|---|---|
| flow | If true | Runs when the condition is true. |
| flow | If false | Runs when the condition is false. |
| flow | When finished | Runs after either branch. |