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

# Branch on a Value

> Evaluate a condition and send the run down a different path based on the result.

Sometimes a run should do one thing when a value looks a certain way and
something else otherwise, such as only enrolling approved leads or routing high
scores to a different step. You evaluate the condition, then route on it.

## Nodes involved

* [Check](/platform/workflows/node-reference/logic-and-flow/check) evaluates a condition
  and gives you a true-or-false result.
* [Conditional](/platform/workflows/node-reference/logic-and-flow/conditional) sends the
  run down one path or another based on that result.

## How to build it

### Evaluate the condition

Add a Check step and write the condition you want to test. For example, to
test whether an earlier step reported an approved status:

```
status == 'APPROVED'
```

The value on the left is usually a reference to an earlier step's output.

### Route on the result

Add a Conditional step after the Check. It reads the true-or-false result and
sends the run down the matching path, so you can build one set of steps for the
approved case and another for everything else.

Keep the condition simple and readable. If you find yourself testing several
things at once, it is often clearer to use more than one Check.

## Related

#### [Check](/platform/workflows/node-reference/logic-and-flow/check)

Every option for evaluating a condition.

#### [Conditional](/platform/workflows/node-reference/logic-and-flow/conditional)

Every option for routing a run down a path.

#### [Expressions](/platform/workflows/core-concepts/expressions/using-expressions-in-nodes)

How to write the condition itself.