Skip to content

break

Exit the innermost enclosing loop immediately.

Syntax

tcl
break

Parameters

None. The break command takes no arguments.

Examples

Exit a for loop early

Output

Search and stop

Output

Breaking from while loop

Output

Break only exits innermost loop

Output

See Also