/
Require Statement
Require Statement
In Lua, the require statement is used to load and execute external modules.
Modules enable you to use separation of concerns to create functions for discrete tasks - leading to more organized code thats easier to understand and troubleshoot.
In Iguana, when you create a new lua file or import a library, Iguana automatically adds the require statement to the top of Main.lua.
, multiple selections available,
Related content
Function scope
Function scope
More like this
How Lua Code is Run in the Translator: Caching Variables
How Lua Code is Run in the Translator: Caching Variables
More like this
Script Initialization (INIT Call)
Script Initialization (INIT Call)
More like this
Libraries
Libraries
More like this
Lua Reference - including the C API
Lua Reference - including the C API
More like this
Lua Coding
Lua Coding
More like this