I need help with a piece of code

Hello, basically, in a forum post I found something like this

local test do
	--Code here
end

What is the difference between that and a function?
In which case could it be used?

This just seems like bad formatting. All this does is create a new variable test and a new block of code. The proper formatting would be

local test 
do
	--Code here
end

Most people don’t just use do end though. It’s really only useful for scope control and not much else.

http://www.lua.org/pil/4.2.html

xsh4ag_107241