--- title: "Setting conditions in Workflows" slug: "setting-conditions" updated: 2025-10-28T15:06:31Z published: 2025-10-28T15:06:31Z canonical: "knowledge.lightico.com/setting-conditions" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.lightico.com/llms.txt > Use this file to discover all available pages before exploring further. # Setting conditions in Workflows When you build a Workflow, there are a number of places where you can set conditions. You can combine multiple condition statements using *And / Or* logical operators. You can also create more complex conditions by including some condition statements in parentheses. This article explains how to set conditions from the relevant screens in the [Form designer](/v1/docs/create-forms), the [HTML designer](/v1/docs/design-dynamic-documents), or the [Workflow designer](/v1/docs/design-workflows). **To set a condition:** Enter the condition statement by selecting an Attribute, a comparison operator (for example, *Contains*) and the value you want to compare it against. For example, you can set a condition that the attribute *state_address* should contain the value *California.* ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/set_condition.png) **To combine multiple condition statements with using And / Or logical operators:** Click the + sign next to the existing condition statement and enter the new condition statement. Select either **And** or **Or** as the logical operator. ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/And_Or_Condition.png) In the above example, the condition applies to anyone who either lives in California or is 18 years old or more. **To include multiple condition statements in parentheses:** Select the relevant condition statements and click the parenthesis button. ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/condition_parentheses.png) In the above example, the condition applies to anyone who either lives in California or is 18 years old or more *and also* possesses a drivers license document that was authenticated by Lightico. A pink bar appears next to the condition statements to indicate that they are in parentheses. To remove the parentheses click the pink bar again. ## Setting a condition based on team One option when creating a condition in a Workflow, is to base the condition on the team that is associated with the session. When a session is started, it is either associated with the agent's team by default or with a team selected by the agent or defined in the API. Using this type of condition, you can, for example, present a different document to sign depending on the associated team. > [!NOTE] > Note > > This feature is supported for Workflow conditional hubs and switches. **To set a Workflow condition based on team:** 1. In the first dropdown, Select **Team**. 2. In the second, **equal to** or **not equal to**. 3. In the last dropdown, select the required team. ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/image-1701942656758.png) ## Comparing Attribute to Attribute **To set a condition that compares one text Attribute to another:** 1. Select an Attribute in the first dropdown. 2. In the last dropdown, select the Attribute icon and enter an Attribute. ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/Snag_5528ae9c.png) ## Condition based on date You can create a condition that compares a date Attribute to one of the following: - custom date - system value date For example, you can compare the expiration date on a photo ID with the **current_date** system value as follows: **id_expiration** (Attribute) > is **less than** > **current date** (system value) ![](https://cdn.document360.io/473bb8c5-ff1b-4930-8109-2321ac6ab967/Images/Documentation/image(403).png) **To define a condition based on date:** 1. For the first part of the condition statement, select a date Attribute. 2. For the last part of the statement select one of the following: - **Custom date** - select a date in the date picker - **System value** - select a date system value > [!NOTE] > Note > > Currently, the following **system value** is supported: > > - current date (today) A series of customer interactions that must be completed in a certain order. Workflows are configured by a business configurator (BC) and added to the session by an agent or API. An identifying label that you bind to data in a session that enables you to organize and make use of the data during the session. Each user is associated with a team. A team defines unique settings that affect how a Collaboration Room session functions and what cases are available in Case Manager. A user that communicates with end-customers to complete tasks in a Collaboration Room session or a Case Manager case. Values that the Lightico system either generates or regularly records from session, case, or analysis data. For a full list of available system values, see [System values](/v1/docs/system-values).