Break loop

Break loop on Logic

Ethereum
Ethereum
Base
Base

Acts onchain

Ready to run on Base

Exits the current loop immediately, continuing after the loop's end. Execution jumps past the innermost loop's End block, skipping any remaining iterations. It only has meaning inside a for, until, or while loop. Reach for it inside a loop behind a predicate, so a target reached mid-iteration, such as a balance depleted or a fill completed, stops the loop without waiting for its condition.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

Takes nothing — it reads the caller's own position.

More plugs on Base

Dollar-cost average on Base · 4 plugs

More on Logic · 4