If

Use If to pass a value based on condition. If is in the Control category.
Input
Name | Data type | Description |
Start | trigger | Trigger if else node to execute |
Condition | boolean | A boolean value which determines the result |
Output
Name | Data type | Description |
True | trigger | The value to pass if condition is true |
False | trigger | The value to pass if condition is false |
Example

In this example, we get 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.
