|The Hyper Programming Language|
|home||language reference||compiler||hyper on launchpad|
The break statement in Hyper is almost identical to that in C++ and Java. It exits from a loop or iterate statement.
There are two possible forms. The first one is simply the keyword break, while the second one is break loop or break iterate.
The break statement used in the simple form applies to the nearest loop or iterate statement. When using the second form, you indicate what type of statement you want to exit. Of course, for both uses the break statement must be somewhere inside the statement to exit.