continue

Skips statements after continue and executes the next iteration of the loop.

Syntax

continue

Example

for i = 1:10
    if mod(i, 3) == 0
      printf('Skips [continue] iteration: %d\n', i)
      continue
    end
printf('Execute iteration:          %d\n', i)
end
Execute iteration:          1
Execute iteration:          2
Skips [continue] iteration: 3
Execute iteration:          4
Execute iteration:          5
Skips [continue] iteration: 6
Execute iteration:          7
Execute iteration:          8
Skips [continue] iteration: 9
Execute iteration:          10