I saw on the developer forums someone said:
for i = 1, 1 do
do continue end
print("This part is skipped")
end
what does "do end" do in roblox scripting?
I saw on the developer forums someone said:
for i = 1, 1 do
do continue end
print("This part is skipped")
end
what does "do end" do in roblox scripting?
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
My advice is to not
do continue end. It just seems, weird.can you link the post.. I wanna see it.. this is interesting.. I think they added a new keyword, I am excited...
do end is not new, i saw it in scripts before continue was added.
https://devforum.roblox.com/t/release-notes-for-418/451795/7
'do continue end' is the standard here since continue can only be in the last line of code in a block so they just add another block to put continue in.