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.

Â