---
title: "Fallback"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/control/fallback
markdown: https://docs.nodetool.ai/nodes/nodetool/control/fallback.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/control/fallback.md
---

# Fallback

**Type:** `nodetool.control.TryCatch`

**Namespace:** `nodetool.control`

## Description

Substitute a fallback value when the input is null or undefined. Does not catch exceptions — it only detects a missing value and swaps in the fallback.
    control, fallback, default, null, undefined, missing, coalesce, flow-control

    Use cases:
    - Provide a default when an upstream step produced no value
    - Detect missing values in workflows
    - Flag whether the fallback was used

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| value | `any` | The value to pass through. When null/undefined, the fallback is used. | null |
| fallback | `any` | Value to return when the input value is null/undefined. | null |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `any` |  |
| error | `str` |  |
| has_error | `bool` |  |

## Related Nodes

Browse other nodes in the [nodetool.control](./) namespace.
