does this break both or just the for loop
local deb = false
while true do
wait()
for i = 1, 50 do
wait()
if deb = true then
break
end
end
deb = true
end
does this break both or just the for loop
local deb = false
while true do
wait()
for i = 1, 50 do
wait()
if deb = true then
break
end
end
deb = true
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
The break syntax would simply break the loop that it is inside of. If you had a while loop and a for loop and put break in that for loop, it would stop the for loop
thanks :)