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