Use If to pass in a value based on a condition. If is in the Control category.
|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||Trigger||Execute the next node if the condition is true.|
|False||Trigger||Execute the next node if the condition is false.|
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.