If Else
Intro
Switch between two results depending on whether a condition is true or not.
UI
Condition - A boolean which will output True for any value ≥ 0.5 and False for any value < 0.5.
True - Connect a layer to be output if the Condition is True.
False - Connect an layer to be output if the Condition is False.
Example
- Create an Ellipse.
- Create 2 Scene Palette colors (blue and green).
- Create an If Else Utility.
- Connect the green swatch to True.
- Connect the blue swatch to False.
- Connect ellipse.scale.x→ifElse.condition.
- Connect ifElse.id→ellipse.fillColor.
As scale moves above and below a value of 0.5 its color will change from green to blue.