Meta Project

The Unofficial Meta Documentation

BREAK

Summary

BREAK terminates processing of a control (loop) structure

Category

CONTROLS

Usage

BREAK

Arguments

N.A.

Refinements

This method has no refinements

Description

BREAK terminates processing of a control (loop) structure

BREAK should be used sparingly. It forces not normal behaviour in a loop and can be cause of memory leakage.

Example Code

for n 5 [
    if n > 3 [break]
    write/line n
]

Related

CONTINUE  

Back to the Meta Methods Reference index