# Branching & conditions

The big advantage multi-step forms have, is that you can show different steps to different website visitors, based on their previous answers.

This is called branching. Based on a condition which you set up, the website visitor will be routed through the form differently.

### Example scenario

In the following example, you can see step branching in action

<div align="left"><figure><img src="/files/7gARs6StOIV5VQHoW4n2" alt=""><figcaption></figcaption></figure></div>

Based on the selection that the website visitor makes in the step "Main fitness goal", they will be redirected to a different step.&#x20;

Here is what the live step looks like:

<div align="left"><figure><img src="/files/kmwP9f9ZbXps8Mw3b4dS" alt="" width="375"><figcaption></figcaption></figure></div>

### Creating conditions

Watch the following video, to learn how to create conditions:

{% embed url="<https://youtu.be/EvxaFD9_s1s>" %}


---

# 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.inputflow.com/form-editor/branching-and-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.
