If

Use If to pass in a value based on a condition. If is in the Control category.
Input
| Name | Data Type | Description |
|---|---|---|
| Enter | Trigger | The input execution that triggers this node. |
| Condition | Boolean | A boolean value that determines which output execution to be taken. Select it to pass the true value only. |
Output
| Name | Data Type | Description |
|---|---|---|
| True | Trigger | Execute the next node if the condition is true. |
| False | Trigger | Execute the next node if the condition is false. |
Example

This example gets the sphere’s position in realtime. If the x-axis is greater than 0, then the sphere will turn red. If the x-axis is less than 0, it will turn green.
