The break statement
Syntax
break
The break
statement is used to exit an enclosing
foreach loop. The break
statement only be used
inside of a foreach loop.
Example
foreach &Class {
if (&Foreach-Variable-0 == 0xabcdef) {
break
}
update reply {
Reply-Message += "Contains %{Foreach-Variable-0}"
}
}