Break (keyword)

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.



The break statement is used to terminate Loops early.

Although you can supply multiple break statements within a loop, it is recommended that you arrange your code to keep them to a minimum, for ease and readability when maintaining your application.

Example:

loop begin
  // statements
   if Test1 then break;

  // statements
end;

In the code above, if Test1 always returns False, the loop will never stop.

Note: break in a parallel loop will break whenever it's possible for the loop to be broken but this is not guaranteed to be before the next set of values.


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox