---
title: Defining if/else conditions in advanced workflows
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** **Enterprise license required**
>
> Features described on this page require the **Kentico Xperience Enterprise** license.

Advanced workflow allows you to define conditions based on which the workflow process can be split into branches.

### Adding a condition

1. Drag and drop the **Condition** step onto the grid.
2. Edit the step. A **Workflow step properties** dialog opens.
3. Enter a [macro condition](https://docs.kentico.com/13/macro-expressions/writing-macro-conditions.md) into the **Condition** field. The condition must evaluate as true or false.
4. Click **Save** and close the dialog.
5. Connect a step that will precede this step and connect both source points with other steps.

The following image shows an example result.

![A condition step placed on the workflow designed grid](https://docs.kentico.com/docsassets/13/defining-if-else-conditions-in-advanced-workflows/condition_step.png "A condition step placed on the workflow designed grid")
