Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

What's the purpose / use of "do" by itself?

Asked by 2 years ago

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?

0
a scope. Read this web-page to learn more. http://lua-users.org/wiki/ScopeTutorial Zafirua 1348 — 2y
0
Oh, thanks lol gmatchOnRoblox 98 — 2y

Answer this question