> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usertick.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Usertick runs surveys on websites, by link, by QR code and by email, and collects every response in one inbox with reports, dashboards and workflows. The REST API lives at https://app.usertick.com/api/public/v1 and uses Bearer API keys or OAuth access tokens; the JavaScript SDK is the @usertick/snippet package on npm.

# If / else and Wait

> Branch a workflow on a response's answers, AI analysis or inbox status with If / else, and hold a run for minutes, hours or days with Wait.

You find **If / else** and **Wait** under **Logic** in the step list. Neither one needs a connection or counts as an integration step.

## Branch with If / else

When a run reaches **If / else**, the step checks its **Conditions**. A run that meets them takes the **Yes** side, and any other run takes the **No** side. On the canvas, wire a step from the card's **Yes** port and another from its **No** port.

**1. Add the step**

Under **Add a step**, select **If / else**.

**2. Set the conditions**

In its panel, select **Add condition** for each condition, then **All conditions** or **Any condition**.

**3. Wire both sides**

Add a step after **Yes**, and another after **No** if the other responses need one.

A branch can test the same fields as the trigger's [conditions](https://docs.usertick.com/workflows/triggers.md#limit-the-responses), plus **Inbox status at that moment**, which is the response's status in the inbox when the branch is checked. After a **Wait**, a branch on that status lets the workflow act only on a response that is still open.

A [threshold alert](https://docs.usertick.com/workflows/threshold-alerts.md) has no response behind it, so it can't use **If / else**.

## Wait before the next step

**Wait** holds the run for the time you set under **Wait for**, from 1 minute to 30 days, and then the run continues to the next step. Select **1 hour**, **1 day**, **3 days** or **7 days**, or enter a number in **Minutes**, **Hours** or **Days**. The panel shows when a run that reaches the step now continues.

A [test run](https://docs.usertick.com/workflows/test-run.md) doesn't hold at a **Wait**, so its result shows **Not waited**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.