Source: https://fyno.docs.pageloop.ai/documentation/advanced-features/workflows/nodes-and-actions/conditions

# Conditions

The **Conditions** widget allows users to create conditional branching logic within workflows.

This widget helps workflows evaluate variables dynamically during execution and route users through different workflow paths based on configured conditions.

# Steps to configure Conditions Widget

1. Drag and drop the **Conditions** widget into the workflow and connect it to the required workflow step.
2. Open the widget configuration panel by clicking the **If** block inside the Conditions widget.
3. Select the required **Variable** from the dropdown list.
4. Choose the appropriate **Operator** such as **equals**, **contains**, or other supported comparison operators.
5. Enter the comparison **Value** that should be evaluated against the selected variable.
6. Click **ADD ANOTHER** to add multiple conditions if required.
7. Save the configuration.

   During workflow execution:
   - If the configured condition evaluates to **true**, the workflow proceeds through the **If** branch.
   - If the condition evaluates to **false**, the workflow proceeds through the **Else** branch.

# Supported Capabilities

The Conditions widget can be used for:

- Conditional workflow branching
- Dynamic user segmentation
- Attribute-based routing
- Personalized workflow execution
- Multi-condition evaluation
- Decision-based automation flows

# Example Use Cases

| Scenario                      | Condition                           |
| ----------------------------- | ----------------------------------- |
| Route premium users           | `user_type equals premium`          |
| Trigger country-specific flow | `country equals US`                 |
| Check subscription status     | `subscription_status equals active` |
| Validate user attributes      | `email contains @company.com`       |

> [!NOTE]
>
> Multiple conditions can be configured within the Conditions widget to support advanced workflow branching and automation logic.
