Continue Statement
The continue statement skips the current iteration of a loop.
continue;
Example
void main() {
for (int i = 1; i <= 10; i++) {
if (i == 3) {
continue;
}
if (i == 5) {
continue;
}
if (i == 8) {
continue;
}
print(i);
}
}
Output
1
2
4
6
7
9
10
Exited.