> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# Conditions

> Call Flow Builder node to add conditions to your call flow.

A Conditions node works like a
[JavaScript if statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#if...else_statement).

A condition field can reference variables that have been set in the flow with `%{Key}`,
Request node responses accessed with `%{request_response.<object_field>}`,
or call parameters such as `%{call.from}`.
Add additional conditions to create `else if` conditions.

The `Cond #` path will be executed for a truthy condition. The `Else` path will be executed for a falsy condition.

## Output Node Connectors

**`Condition`** `string`

The condition that is evaluated to determine which path to take. Additional conditions can be added by clicking the `Add condition` button. Additional conditions will act as JavaScript `else-if` statements.

---

**`Else`** `string`

The path to take if none of the conditions are met.

---

## Node Settings

**`Conditions`** `string`

The conditions that are evaluated to determine which path to take. Additional conditions can be added by clicking the `Add condition` button. Additional conditions will act as JavaScript `else-if` statements.

---

## Example

### Use conditions to create a block list

In this example, we immediately hang up calls from specific numbers on our block list and forward call from a VIP directly to our administration number.
All other calls will connect to the main reception number.

![Block or pass through calls based on caller number.](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/signalwire.docs.buildwithfern.com/81ae49109a78c5cd27063cae6527589be772edb6e1501b5f829271973603ec68/assets/images/call-flow/nodes/block-condition.webp?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260817%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260817T013419Z&X-Amz-Expires=604800&X-Amz-Signature=71e0b4c881c527c1da7326fd9ace88b23b03452ccf951354900c9a3411820908&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)