continue Last updated: 06. Mar 2023

Keyword

Jumps to next item and continues in the current for loop.

Parameters

This function takes no parameters

Returns

nothing

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
let array = ["a", "b", "c"];
for(let item of array) {
    if (item == "b") continue; /* skips b and continues with c */
    write(item);
}

Output

The JS code above produces the output shown below:
ac