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

# Branching

> Create conditional logic to route data down different paths

<img src="https://mintcdn.com/cortex-891fd898/4MLfFrvXy66YjKyF/assets/workflows/steps-advanced/branching/branching-overview.png?fit=max&auto=format&n=4MLfFrvXy66YjKyF&q=85&s=77765fd54711c2e0612218303f35b859" alt="Branch Step Overview" style={{ borderRadius: '10px' }} width="2432" height="1184" data-path="assets/workflows/steps-advanced/branching/branching-overview.png" />

## Structure

A Branch step consists of three main components:

1. **Default Destination**: Steps connected to the top connection circle execute regardless of conditions
2. **Conditional Paths**: Multiple `IF` conditions with their own destination steps
3. **Else Path**: Optional default path when no conditions are met

## Adding Conditions

1. Click the "+" button located at the bottom of the existing conditions
2. Write your condition logic in the new condition box
3. Connect desired steps to the new condition's destination
