---
title: "Break"
description: "Stop the nearest loop from inside its body."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/loops/break"
---
# Break

> Stop the nearest loop from inside its body.

<block-meta block="Yes" channels="Any" folder="basic/loops" group="Loops" groupTo="/build/workflows/blocks/loops" icon="i-lucide-circle-stop" pipe="Unset" scope="Callback" tool="No" type="loop.break">



</block-meta>

**Break** stops the nearest active loop. Place it **inside** a loop **callback** scope (after [Lambda](https://docs.vettero.com/build/workflows/blocks/module/lambda), often behind a [condition](https://docs.vettero.com/build/workflows/blocks/condition)). It has no outgoing handle — that branch of the body ends.

It belongs in **callback** scope, not on the main path. Outside an active loop body the run fails.

Values already **return**ed in earlier iterations stay on the loop’s result list. The current iteration is not collected as a normal return.

## Configure

There are no settings — the block only emits a stop signal.

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection (from a block inside the loop body)
    </td>
  </tr>
</tbody>
</table>

There is no **Out**. Connect **Break** at the end of the branch that should exit the loop.

## Pipe schema

This block does not pass a value along the main graph. The parent loop still puts its collected list on the pipe when it finishes.

## Use case

- Inside [For Of](https://docs.vettero.com/build/workflows/blocks/loops/for-of) or [For In](https://docs.vettero.com/build/workflows/blocks/loops/for-in), stop after the first matching item instead of walking the rest.
- Inside [While](https://docs.vettero.com/build/workflows/blocks/loops/while) or [Do While](https://docs.vettero.com/build/workflows/blocks/loops/do-while), exit from a nested branch without returning `false` from every path.
- Pair with a [condition](https://docs.vettero.com/build/workflows/blocks/condition): true path → **Break**, false path → finish the body. Use [Continue](https://docs.vettero.com/build/workflows/blocks/loops/continue) when you only want to skip this iteration.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
