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

# If Node

> Conditional routing

The If Node has two output handles: `true` and `false`. The active path depends on the evaluated condition.

## Input

Use JavaScript syntax to define a condition.

Example:

```js theme={null}
4 + 5 === 9
```

will activate the `true` path.

You can reference data from other nodes using interpolation:

```js theme={null}
$nodes['Node Name'].property
```

## Output

The result of the condition determines **which path the workflow will follow**.

You can access the result of the If Node in subsequent nodes using:

```js theme={null}
$nodes['If Node']
```
