Difference between revisions of "Require"
From GiderosMobile
(added see also) |
(added see also) |
||
Line 14: | Line 14: | ||
=== See also === | === See also === | ||
− | [[Loading Order of Lua Files]] | + | '''[[Loading Order of Lua Files]]''' |
{{(global)}} | {{(global)}} |
Revision as of 00:52, 26 September 2020
Available since: Gideros 2011.6
Class: (global)
Description
Loads and runs libraries. Roughly, require does the same job as dofile, but, require searches for the file in a path. Because of that, require is the preferred function in Lua for loading libraries.
require(packagename)
Parameters
packagename: (string) library to load
See also