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.
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:
See Also ... Lua keywords/topics
assignment
Topics
Lua base functions
(Help topic: lua=do) |
Enter a search string to find matching documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.