Algosim documentation: break

break

Returns immediately from a loop.

Syntax

Description

break(n) immediately returns from the closest n loops (ForEach, for, while, until, or repeat). If omitted, n defaults to 1, so that only the innermost loop is terminated.

See also