---
title: "Apply a condition to a triggered experiment"
slug: "apply-a-condition-to-a-triggered-experiment"
abstract: "How to apply a condition to a triggered experiment."
---
# Apply a condition to a triggered experiment

You can use [conditions](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/conditions.html "Conditions") to filter the audience for an experiment based on real-time visitor behavior. You can apply either [out-of-the box conditions](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/conditions/out-of-the-box-conditions.html "Out of the box conditions") or [custom conditions](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/conditions.html "Conditions") configured by a developer for your organization.

To add a condition:

1. On the experiment builder, click the **Filter** tile.
2. Click **Add filter**.
3. In the **Filter** pane, click **Add conditions**.
4. In the right pane, click ![pers_addcond.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/pers_addcond.png) next to the condition you want to apply. To locate a condition, do one of the following:
    - Switch between the **Custom** or **Out of the box** tabs to filter the conditions by type.
    - Use the **Tags** selector to narrow down conditions by the relevant condition tags, such as *Geo* and *Date*.
    - Enter a keyword in the search field to find conditions by name or description.

    ### Caution

    Not all conditions are compatible with triggered experiments. This is because some conditions contain parameters that are only designed to work with certain types of experiments. If you want to apply an out-of-the-box condition, we recommend that you first [check whether the condition is compatible](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/developer-center/conditions/out-of-the-box-conditions.html "Out of the box conditions") with the triggered experiment.

5. Complete the required information for the selected condition.

    ![Select a condition to use and complete the required information](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/conditions_Add_new_Trig_70.png)

6. To [apply additional conditions](urn:resource:component:1545761/section-idm234749047534149), click **Add condition**, select another condition, and provide the necessary details. You can add up to five conditions to an experiment or experience and use the **And** or **Or** operators to define how they are evaluated.

    ![Two conditions combined using an Or operator to filter an audience](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/Conditions_Add_another_Trig_70.png)

    > [!important]
    > Multiple conditions are designed to always evaluate to `true` or `false`. A single condition might still return a value. Before applying multiple conditions, make sure you understand the order of operations in conditions and follow the [best practices for creating custom conditions](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-triggered-experiments-in-sitecore-personalize/best-practices-for-creating-custom-conditions.html "Best practices for creating custom conditions") to ensure robust and predictable logic.

7. Optionally, to [create a group of conditions](urn:resource:component:1545761/section-idm234749047534149), click **Add group**. Conditions within a group are evaluated first, and the result is then combined with the other conditions that create the audience. Groups can contain up to five conditions, but the total number of conditions, whether grouped or individual, must not exceed five.

    Configure each condition and use the **And** or **Or** operators to define how they are evaluated.

    ![Adding conditions to a group to be evaluated as a single unit.](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/Conditions_Add_group_Tri_70.png)

    > [!note]
    > It is also possible to move a condition into an existing group by clicking the up ![Conditions_arrow_up.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/Conditions_arrow_up.png) or down ![Conditions_arrow_down.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/Conditions_arrow_down.png) arrows on the right-hand side of the condition.

8. To reorder conditions, click the up ![Conditions_arrow_up.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/Conditions_arrow_up.png) or down ![Conditions_arrow_down.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/Conditions_arrow_down.png) arrow on the right-hand side of the condition to move them higher or lower in the list of conditions. Conditions are evaluated based on their arrangement and the [order of operations](urn:resource:component:1545761/section-idm234749176851904).
9. When you have finished adding conditions, click **Save**. The **Filter** pane displays the applied conditions in an easily readable format.

    When you start the experiment,it runs only for visitors whose real-time behaviors match the defined conditions.

    > [!tip]
    > You can also [apply a segment](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-experiments-in-sitecore-personalize/introduction-to-triggered-experiments-in-sitecore-personalize/apply-a-segment-to-a-triggered-experiment.html "Apply a segment to a triggered experiment") to filter the visitors who see the experiment, based on segment membership.