Is there a purpose of "do" outside of a for loop? I only see them in for loops, and occasionally randomly.
i.e - (not literally but this is an example lol)
do
print("Hi")
end
Could someone explain the functionality of this?
Is there a purpose of "do" outside of a for loop? I only see them in for loops, and occasionally randomly.
i.e - (not literally but this is an example lol)
do
print("Hi")
end
Could someone explain the functionality of this?
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
a scope. Read this web-page to learn more. http://lua-users.org/wiki/ScopeTutorial
Oh, thanks lol