Local Variable and Global Variable in Lua : Lua Tutorial Series # 4

4,025 views · Published 19 August 2016 · 2:53 · Indexed 12 November 2026

Channel: HowTo · 2016 · Sports

Watch on YouTube

Unlike global variables, local variables have their scope limited to the block where they are declared. A block is the body of a control structure, the body of a function, or a chunk (the file or string with the code where the variable is declared).

More from this channel