> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Logic: If

> This reference describes the Logic: If task.

This reference describes the Logic: If task.

The Logic: If task splits the execution of a workflow into two branches based on the conditional statements that you define.

The returned evaluation of your conditional statements must be either `True` or `False` . You can then define a downstream task for the **On True** or **On False** condition.

## Task settings

On the **Condition** tab, enter the if-clause in Liquid and the returned evaluation must be either `True` or `False` . `True` and `False` must be spelled with the first letter capitalized.

If you want to use a Liquid variable that is defined in an upstream task in the current task, you must select **Skip Validation**. Otherwise, the variable cannot be parsed.

**Concurrency Mode**: Controls whether Workflow processes tasks in a single or multi-threaded manner for this task type. Select **Sequential** to single-thread, or **Parallel** to allow multi-threaded processing.

If you select **Parallel**, the **Max Concurrency** setting controls the maximum number of threads for this task type that can be utilized. You can specify a value from 1 up to the allowed maximum for this task type. A value of 1 behaves the same as Sequential processing.

## Examples

Here is an example of the conditional statements for evaluating the size of an array and the two branches created after this “Logic: If” task.

```json
{% if Data.Subscription.size > 0 %}
True
{% else %}
False
{% endif %}
```

For more examples, see the following articles:

* [Customize invoice templates using HTML](/docs/platform/extensibility/workflow/create-and-manage-workflow-definitions/workflow-use-cases/customize-invoice-templates-using-html)
* [Perform payment gateway reconciliations with Workflow](/docs/platform/extensibility/workflow/create-and-manage-workflow-definitions/workflow-use-cases/perform-payment-gateway-reconciliations-with-workflow)
* [Process a large number of refunds](/docs/platform/extensibility/workflow/create-and-manage-workflow-definitions/workflow-use-cases/process-a-large-number-of-refunds)