> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# If Router

> Creates conditional logic branches in workflows, 'true' path executes if condition is met, 'false' path executes if condition is not met

Creates conditional logic branches in workflows, 'true' path executes if condition is met, 'false' path executes if condition is not met. You need to provide data and conditions to evaluate.

|                     |                          |
| ------------------- | ------------------------ |
| **App**             | Flow Control             |
| **Operation ID**    | `flow_control_if_router` |
| **Type**            | Action                   |
| **Connection**      | None                     |
| **Credits per run** | Free                     |

## Inputs

| Field              | Type               | Required | Default | Description                                                                                                                                         |
| ------------------ | ------------------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `conditions`       | array of Condition | Yes      | -       | List of conditions to evaluate. Each condition must have an expression, operator, and value. The joiner can be used to combine multiple conditions. |
| `allow_false_path` | boolean            | No       | `True`  | Whether to allow a false path if no conditions match. This hides the false source handle in the UI if set to false.                                 |

### Condition

| Field        | Type   | Required | Default | Description                                                                                                                                          |
| ------------ | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `expression` | string | No       | -       | Dynamic expression to evaluate, e.g., '\{\{n1\_\_data.field\_name}}'. Can be None for IS\_NULL checks.                                               |
| `operator`   | string | Yes      | -       | The condition operator, must be one of the available operators                                                                                       |
| `value`      | string | Yes      | -       | The value to compare against, could also static (e.g., '42') or dynamic expression: '\{\{n2\_\_data.other\_field}}'                                  |
| `joiner`     | string | No       | -       | Optional joiner for multiple conditions (e.g., 'AND', 'OR'). Joiner should be added from second condition onwards. Don't add to the first condition. |

## Output

**Type**: `str`

Returns 'true' or 'false' based on condition evaluation.
