# Break

Exits (terminates) a loop. Valid inside any kind of loop.

Break

The Break statement applies to the innermost loop in which it is enclosed. The use of Break and Continue are encouraged over goto since they usually make scripts more readable and maintainable.

#### Related

Continue, Loop, While-loop, Blocks

#### Example

    loop
    {
        ...
        if var > 25
            break
        ...
        if var <= 5
            continue
    }