HyperMath

continue

continue

Previous topic Next topic No expanding text in this topic  

continue

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The keyword continue goes to the next iteration in a loop.

Syntax

continue

Example

Within a for loop, continue can be used to go to the next iteration.

 

n=10

for i=1,n do

 if (i<5 || i>=8) then

   continue;

 else

   print(i)

 end

end

Result

5

6

7

See Also:

For