# If Else

**Introduction**

The "If Else" step introduces conditional logic into your automations, allowing you to execute different sequences of steps based on specified conditions. This functionality is pivotal for creating dynamic flows that can adapt based on variables or specific scenarios within your automation.

**Subpaths**

* **Conditions**: Defines the conditions to evaluate for branching. These conditions determine which path is executed.
* **Conditions Match**: This path is executed if the conditions evaluate to true.
* **Conditions Don't Match**: This path is executed if the conditions evaluate to false.

**Usage**

* Sending different messages or responses based on user input or actions.
* Executing different tasks based on the results of previous steps, such as API calls or data processing outcomes.
* Managing flow control in complex automations, allowing for branching paths that accommodate a wide range of scenarios.


---

# 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://docs.flexy.bot/modules/scripting/steps/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.
