---
title: Defining automatic decisions in processes
related:
  - https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/marketing-automation/working-with-the-automation-process-designer/defining-manual-choice-steps-in-automation-processes.md
  - https://docs.kentico.com/13/macro-expressions/writing-macro-conditions/building-conditions-using-macro-rules.md
  - https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/on-line-marketing-macros.md
---

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

[Marketing automation](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/marketing-automation.md) allows you to split processes into multiple branches. You can define conditional steps, which automatically determine how contacts continue through the process.

The system evaluates automatic decision steps based on dynamic conditions. For example, you can create conditions that check the values of the given contact's attributes, or their previous activity on a website.

## Adding conditions

The process designer provides **If/Else** steps, which split the process into two or more branches. You can define any number of branches by creating _cases_, each with its own condition.

When a contact reaches the step in the process, the system evaluates the cases according to their order. If the step finds a matching condition, the contact moves forward to the step connected to the corresponding case (the remaining cases are not evaluated). If none of the conditions are fulfilled, the process continues through the _else_ branch.

To add an If/Else step:

1. [Place](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/marketing-automation/working-with-the-automation-process-designer/managing-automation-process-steps.md) the **If/Else** step onto the grid from the designer toolbar.
2. Integrate the step into the flow of the process by [connecting](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/marketing-automation/working-with-the-automation-process-designer/connecting-automation-process-steps.md) a preceding step.
3. [Define cases](#defining-condition-cases) for the step.
4. Connect the _else_ source point (red on the step's bottom edge) to another step.
5. Connect the source points of all cases to other steps.

For example, the process shown below uses a condition to send a campaign email only to contacts who fulfill a specific condition (have submitted a certain form). If the contact in the process does not meet the condition, the process moves directly to the **Finished** step.

![Condition that moves the process to the Send marketing email step if true](https://docs.kentico.com/docsassets/13/defining-automatic-decisions-in-processes/condition_step.png "Condition that moves the process to the Send marketing email step if true")

## Defining condition cases

Cases represent individual branches of _If/Else_ steps.

![Condition with multiple cases](https://docs.kentico.com/docsassets/13/defining-automatic-decisions-in-processes/Multi_choice_cases.png "Condition with multiple cases")

To set up cases for a step:

1. Click **Add new case** () next to the step title to create the required number of branches.
2. Click **Edit case properties** () for each case.
   - The **Edit case properties** dialog opens.
3. Specify the case's [condition](https://docs.kentico.com/13/macro-expressions/writing-macro-conditions/building-conditions-using-macro-rules.md) in the **Condition** field.
4. (Optional) Type a text description of the condition into the **Designer label** field.
5. Open the **Security** tab and choose which users or roles are [allowed](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/marketing-automation/working-with-the-automation-process-designer/configuring-step-security-for-automation-processes.md) to manually move contacts through the given case.

   - By default, cases inherit the security settings of the step.
6. Click **Save** and close the dialog.

You can see the cases listed inside the step. Each case provides a separate source point for connecting the decision step to the appropriate branch of the process.

Alternatively, you can manage a step's cases in the right-side step configuration panel. Select an If/Else step in the grid and then the **Cases** tab in the panel.

### Changing the case order

_If/Else_ steps evaluate the conditions of cases according to their order. If a condition is fulfilled, the contact continues through the given branch and any remaining cases are not evaluated.

To adjust the order of an _If/Else_ step's cases:

1. Select the step in the process designer.
2. In the right-side step configuration panel, open the **Cases** tab.
3. Drag individual cases up or down to get the desired order (via the **Drag to move** icon next to each case).
