Skip to content

Continue Statement

Continue statement can be used to skip current iteration. This is done using the continue keyword.

Syntax
continue;
Example
i := 0;
while (i < 6) {
    i++;
    if (i % 2 == 0) continue;
    print(i);
}

# prints,
#   1
#   3
#   5