Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 6 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 — 6y
0
Oh, thanks lol gmatchOnRoblox 103 — 6y

Answer this question