Plange


terminate the containing for, do, or while/until loop

syntax

"break" [("[" EXPRESSION "]") | (IC IDENTIFIER)]

Example

for (i in X) {
    for (j in Y) {
        break i;
    }
}

Notes

If a square-bracketed value is appended to a the "break" keyword, that many scope levels plus one will terminate. "break" is the same as "break[0]". If a variable identifier follows the "break" keyword, the iterative flow-control primitive associated with that variable will be affected.


This website does not use cookies or javascript, excluding the Google search bar and Google analytics.
copyright © Brent Lewis 2013-2018