# 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](https://scenegroup.gitbook.io/cavalry/nodes/shapes/basic-shape).
2. Create 2 [Scene Palette](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/color-palette) 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scenegroup.gitbook.io/cavalry/nodes/utilities/if-else.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
