Require

From GiderosMobile
Revision as of 13:53, 23 August 2018 by Hgy29 (talk | contribs)

Available since: Gideros 2011.6

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