Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

@break

@break exits the nearest active repeater immediately.

With an expression, @break value becomes the repeater result. Without an expression, the current element output becomes the repeater result.

It can exit through nested blocks owned by the repeater, but it does not cross function boundaries. Using it where no repeater is reachable raises a control-flow runtime error.

[rep:3]{
  before
  { @break stop }
  after
}
# -> stop