Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.