# Conditional Steps

If you have a workflow where the approval and/or task steps should change depending on the data from the [intake form](/workflows/designing-a-workflow.md#designing-your-intake-form) or [form steps](https://docs.wrangle.io/workflows/designing-a-workflow#form-steps), you can use conditional steps. Conditional steps let you use *if-then* logic to create powerful, dynamic workflows.

Here are some example use cases for conditional steps:

* **Refund requests:** if requested amount exceeds $500, then a manager must approve it, but if the requested amount is under $500, then a team lead or supervisor must approve it.
* **IT support tickets:** if the requester's issue is hardware-related, then hardware-specific troubleshooting tasks are created and routed to the IT team. But if the issue is software-related, then software troubleshooting tasks are created.
* **Product feedback/bug tracking:** have requesters select which product area is affected in order to route it to the appropriate product manager/engineering team.

Watch this video to see how to set up conditional steps in your workflow:

{% embed url="<https://youtu.be/4aGt-9yMIgA>" %}

## Intake form questions and their corresponding operators

Both "Number Input" and "Select from a List" question types can be used to determine conditional steps.&#x20;

For example, let's look at a refund request workflow. You might have fields like "Refund Amount" (number) and "Reason for Refund Request" (list).&#x20;

![](/files/vvs4khDCHH80anWt00vn)

For conditional steps, the following comparison operators are available for each question type:

* **Number Input**
  * is equal to
  * is not equal to
  * is greater than
  * is greater than or equal to
  * is less than
  * is less than or equal to
* **Select from a List**
  * is one of the following options
  * is not one of the following options

## Creating a conditional step

Once your form has either a "Number Input" or "Select from a List" question, now any approval or task list step in your workflow can be made conditional. \
\
In the workflow designer, find the "Only run this step under certain conditions" toggle at the bottom of your approval or task list step:

![](/files/ecEO1bJzvgp643N8E51Y)

Once toggled on, you can choose your question, comparison operator, and value(s):

![Comparison operator options for a Number field.](/files/qBBJLh5odinNiIta4ASF) ![Once you choose your operator, input a value. In this case, this step will only run when the "Refund Amount" is greater than 500.](/files/f04SYHiXBXJmIUeWVWGM)

![Comparison operator options for a List field.](/files/8yFGjTe1gfqCfN4Qa9Ae) ![Once you choose your operator, select your list option(s). In this case, the step will only run when the "Reason for Refund Request" is either "Product defect" or "Item not as described."](/files/QAwdIDlKz3AHDMepHtpm)


---

# 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.wrangle.io/workflows/designing-a-workflow/conditional-steps.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.
