# Condition
URL: /reference/blocks/system-condition
Type: reference
Description: Branch the workflow based on a boolean expression
Keywords: condition, system/condition, system, block, workflow builder
`system/condition` — Branch the workflow based on a boolean expression.

Where it appears [#where-it-appears]

The **Condition** block lives in the **Logic & control** group of the Workflow Builder.

Fields [#fields]

| Field       | Type       | Required | Default | Description                                                 |
| ----------- | ---------- | -------- | ------- | ----------------------------------------------------------- |
| `condition` | conditions | Yes      | —       | Boolean expression evaluated against upstream node outputs. |

Operators: ===, !==, >, \<, >=, \<=, !, &&, ||
Methods: .includes(), .startsWith(), .endsWith(), .toLowerCase()
Helpers: containsAny, containsAll, isOneOf, isNoneOf, matches, isPresent, isEmpty |
\| `trueLabel` | text | No | `True` | Display name for the branch taken when the condition evaluates to true. Shown on the canvas edge and in logs. |
\| `falseLabel` | text | No | `False` | Display name for the branch taken when the condition evaluates to false. Shown on the canvas edge and in logs. |

Inputs and outputs [#inputs-and-outputs]

Inputs are the configurable fields above. The block produces these outputs:

**Outputs**

Reference an output downstream with `<Condition.field>`.

| Name         | Type    | Description      |
| ------------ | ------- | ---------------- |
| `condition`  | boolean | Condition result |
| `route`      | string  | Selected route   |
| `routeLabel` | string  | Route label      |

Example [#example]

A minimal configuration for this block:

```json
{
  "type": "system/condition",
  "config": {
    "condition": "<PreviousStep.field>",
    "trueLabel": "True",
    "falseLabel": "False"
  }
}
```

Limits and failure modes [#limits-and-failure-modes]

* Required field (`condition`) must be set, or the block fails validation before it runs.

Related [#related]

* [All workflow blocks](/reference/blocks)
* [Workflow Builder overview](/workflow-builder-overview)