> For the complete documentation index, see [llms.txt](https://docs.cosmocloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cosmocloud.io/flow-builder/node-types/conditional-nodes/if-else.md).

# If Else

**If Else** node lets you check for a boolean condition, which if true sends the flow execution to the **True** branch, else sends the flow execution to the **False** branch.

### Adding If Else node at the end

As you see in the below image, an **If Else** node comes with two child branches - **True** and **False** branch. You can build your remaining flow in these branches.

<figure><img src="/files/vsOwD3Gz8b3oMhjk9iai" alt="" width="375"><figcaption><p>An If Else condition Block</p></figcaption></figure>

### Adding If Else node between 2 nodes

If you try adding the **If Else** node between 2 existing nodes, you will see a popup asking you which branch should the existing children be part of.

<figure><img src="/files/mlwAgmUyY3xLl7KGSs6C" alt="" width="375"><figcaption></figcaption></figure>

This is because **If Else** node breaks the flow into 2 separate branches, **which never merge**. If you want the branches to merge, checkout [<mark style="color:blue;">**If Else V2**</mark>](broken://pages/N7zEthlMcnALe3I8oxup).

{% hint style="warning" %}

### Deleting If Else node

If you plan to delete the **If Else** node, keep in mind that it will **delete the whole flow** **below** the current If Else node as the system does not know which branch to connect to the parent node.\
This does not happen with [<mark style="color:blue;">**If Else V2**</mark>](/flow-builder/node-types/conditional-nodes/if-else-v2.md)<mark style="color:blue;">**.**</mark>
{% endhint %}

### Properties Panel

<table><thead><tr><th width="338">Field</th><th>Description</th><th>Required</th></tr></thead><tbody><tr><td>Node name</td><td><a href="/pages/jJ1qO0Ju8d7VFyPB2Jy3"><mark style="color:blue;"><strong>Checkout Node name</strong></mark></a></td><td>true</td></tr><tr><td>Condition</td><td>The condition object which this node evaluates at Flow Runtime, based on which the flow is sent to <strong>True</strong> branch or <strong>False</strong> branch.<br><br>Check <a href="/pages/aJtci0lt5gcR4VOrIDr9">this documentation</a> to see how to build conditions in this node.</td><td>true</td></tr></tbody></table>

### Returns

`condition` - The boolean result of the condition at runtime. You can access this using Magical Autocomplete (Eg. `$.<node_name>.condition`) in any node below this node.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cosmocloud.io/flow-builder/node-types/conditional-nodes/if-else.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
