# Only Continue If

**Introduction**&#x20;

This step acts as a conditional gate within an automation, allowing the flow to continue only if specified conditions are met.

**Description**&#x20;

Useful for creating decision points in an automation where subsequent steps are executed based on the fulfillment of predefined conditions. It ensures that the automation follows the desired path based on dynamic criteria.

**Subpaths**

* **Conditions**: Define the condition steps. This subpath performs condition checks the same way as [And](/modules/scripting/steps/conditions/and.md) step.

**Usage**&#x20;

Ideal for segmenting automation flows based on specific criteria, such as user responses, data values, or external factors. It can be used to create branches in the automation, ensuring that each path is followed only when relevant conditions are satisfied. This can be achieved in combination with [Paths](/modules/scripting/steps/paths.md).


---

# 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/only-continue-if.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.
