The **Break iteration** building block is used to break out of loops or iterations and trigger the **Completed** output of the building block that is performing the iteration.

Fully expanded, the **Break Iteration** block shows the following properties:

**Note:** The screenshot on this page uses the **Elegance Design**, introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Break iteration** onto the canvas.
2. Connect the block in the flow and optionally specify basic parameters such as **Scope**.
3. Run the flow when it’s ready.

## Building block parameters

Parameters

- **Block header:** Shows the current title of the **Break iteration** block. You can rename it by double-clicking the header and typing a new title. The green input connector triggers the block when the flow reaches it. Instead of providing a separate “success” output, this block breaks the active iteration so the iterating building block can continue via its **Completed** output.

- **Scope:** Defines how broadly the break should be applied.  
  - **Current:** Breaks out of the current iteration only.  
  - **All:** Breaks out of all nested iterations, which can be useful when you are working with nested loops to compare combinations of values.

## Resources

| **Topic** | **Description** |
| --- | --- |
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq) | Common questions about creating, running, and managing flows in Leapwork. |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.
