do

You can use do ... end to make a "block". This can be useful if you want to have a local variable limited in scope, eg.
do
  local foo = 22
  -- use foo here
end -- of do
Also you need to use "do ... end" if you want to put a return inside the middle of a function (eg. for testing), like this:
do return end

Lua keyword/topics

Topics