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?

2 comments

0

a scope. Read this web-page to learn more. http://lua-users.org/wiki/ScopeTutorial

0

Oh, thanks lol