break
Terminate execution of for or while loop
Syntax
Description
break
terminates the execution of a for
or while
loop.
Statements in the loop after the break
statement
do not execute.
In nested loops, break
exits only from the
loop in which it occurs. Control passes to the statement that follows
the end
of that loop.
Examples
Tips
Extended Capabilities
Version History
Introduced before R2006a