Why do some people use "local variable do" and how does it work?

I have looked through some codes of some models from the toolbox to learn something, and i saw something similar to “local variable do” and i was confused because i didnt know what this was for.

it seemed to have a function inside of it, which would return something.
is this like making the variable what it returns?

i have tried searching online but to no avail.
please help.

Could you show the script in which you saw this or at least the essential parts? It would help me explain if I could see it.

I think this is just for organization purposes, nothing special.

local success do
	-- This is just a code block
end

-- Also:

do
	-- This is valid syntax
end

I think she means this:

local func do
     function func(...)
         print(...)
     end
end

func("Hello")

sorry but i cant, since i have seen it a while back and just thought of it.

While do is used for loops it has other uses.

yeah i have seen it being used similar to that, never knew why since you could just do this:

function func(...)
print(...)
end

func("Hello")