The break Statement

Syntax
break

The break statement is used to exit an enclosing foreach loop. The break statement cannot be used outside of a foreach loop.

Example
foreach &Class {
    if (&Foreach-Variable-0 == 0xabcdef) {
        break
    }

    update reply {
        Reply-Message += "Contains %{Foreach-Variable-0}"
    }
}