I've just been observing other people's code, and from time to time i see this "do" statement completely alone. Does this statement have any additional meaning to it? What exactly is it used for?
Example:
do print("Code") end
The "do" keyword can be used to create new scopes in code. Basically used for making a new environment for holding local variables, incase you don't want to make a new one.
Here's an example:
do local test = "hello" print(test) -- hello end print(test) -- nil