# Scenario Step Conditions

### Step conditions

Step conditions are optional. Use them to route execution to different steps.

The platform supports two types of conditions:

1. A condition **based on fields** (branching).

{% hint style="info" %}
If the amount in the certificate of completion is more than 1000, run one branch. Otherwise, run another.
{% endhint %}

2. A condition that creates several envelopes **based on values** in the source.

{% hint style="info" %}
If the value is **Yes**, create envelope(s) for **Yes**. If the value is **No**, create envelope(s) for **No**.
{% endhint %}

If a condition is not set, it can be missing in the request or set to `null`.

### Additional logic

* If the execution condition is `false`, check the next steps.
* If all steps evaluate to `false`, run the step where the condition is `null`.
* If there are no conditions, run the next steps where the condition is `null`, using the respective source value.
* If several steps meet the conditions, the envelope UI shows several buttons to start different steps.
* Several steps are also returned in the response.


---

# 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://support.docstudio.com/user/scenarios/condition-types/scenario-step-conditions.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.
