> For the complete documentation index, see [llms.txt](https://scenegroup.gitbook.io/cavalry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scenegroup.gitbook.io/cavalry/nodes/utilities/if-else.md).

# If Else

**Condition** - A boolean which will output **True** for any value **≥ 0.5** and **False** for any value **< 0.5**.

**True** - Connect an Element to be output if the **Condition** is **True**.

**False** - Connect an Element to be output if the **Condition** is **False**.

{% hint style="success" %}
Example usage:

1. Create an [Ellipse](/cavalry/nodes/shapes/basic-shape.md).
2. Create 2 [Scene Palette](/cavalry/user-interface/menus/window-menu/color-palette.md) colors (blue and green).
3. Create an **If Else** Utility.
4. Connect the green swatch to **First**.
5. Connect the blue swatch to **Second**.
6. Connect ***ellipse.scale.x > ifElse.condition***.
7. Connect ***ifElse.id > ellipse.fillColor***.

As scale moves above and below a value of 0.5 its color will change from green to blue.
{% endhint %}
