continue
Basic Usage with "for" Loop:
# Using 'continue' keyword in 'for' loop
for var i = 1 to 5 then
if i == 3 then
continue # Skip the current iteration when i is 3
end
show(i)
endExplanation:
Basic Usage with "while" Loop:
var i = 0
# Using 'continue' keyword in 'while' loop
while i < 5 then
i = i + 1
if i == 3 then
continue # Skip the current iteration when i is 3
end
show(i)
endExplanation:
Usage in Nested Loops:
Explanation:
Last updated