# break Exit a `for` or `while` loop early. ## Syntax
break
## Examples
for i @{ 1 2 3 4 5 } {
    if ($i == 3) { break }
    echo $i
}
# prints 1, 2
set found nil
for item $list {
    if ($item~name == "target") {
        set found $item
        break
    }
}
## See Also `continue`, `for`, `while`, `return`