SplitScript reference / Language / continue

continue

keyword

continue

Starts the next iteration of the nearest enclosing loop.

continue is an ordinary Never-typed expression. It may appear anywhere an expression is accepted inside a loop, including a fallback else; evaluating it starts the next iteration instead of yielding a local value. The loop condition is then evaluated again.

Examples

Skip an iteration

while index < count {
    index += 1
    if index == ignored { continue }
    inspect(index)
}