The break Statement - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Flow Control : break

The break Statement



When the break statement is executed, the result is to exit from the innermost repetition (for/while/do) statement within which it occurs.


After exit, execution proceeds, with the first statement following the repetition statement.


It is an error if a break is executed in a context other than within a repetition statement.


In Maple V Release 5.1 and earlier, break was just a Maple symbol. In Maple 6 and later, break is a keyword in the Maple language.



forxinLdoiftypex,'string'thenprintx;breakend ifend do



See Also

do, Maple keywords, next

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam