Is there any way to skip in loop functions?

Is there any way to make the i=1 skip over i=2 like it never existed?

Context: I’m trying to continue looping until a string no longer exists, i need the i=1 to move on after the whole loop function.

for i = 1,2 do
    if i == 1 then
           if not part1 then break end
       -- "Should only be working"
    end
    if i == 2 then -- I need this removed.
       -- "This part should be skipped"
    end
end
for i = 1,2 do
    if i == 1 then
           if not part1 then break end
       -- "Should only be working"
       continue
    end
    if i == 2 then -- I need this removed.
       -- "This part should be skipped"
    end
end
1 Like

How can this one simple word be so nice to have around.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.