> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/scenarios/condition-types/scenario-step-conditions.md).

# 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.
