Difference between revisions of "Import"
Jump to navigation
Jump to search
imported>MapleMario (New page: '''import <filename>''' <br />'''Import''' is a command that is used to import (hence the name) an entire file's contents into the file in which '''import''' is called. <p>Example: <pre>#...) |
(No difference)
|
Revision as of 22:31, 9 May 2009
import <filename>
Import is a command that is used to import (hence the name) an entire file's contents into the file in which import is called.
Example:
# snippet from my aftercore.ash file import <aftercore_config.ash> // import the configuration file (loaded with variables) into the script import <aftercore_bounty.ash> // import bounty functionality (loaded with functions) into the script int first_meat = my_meat(); int first_advs = my_adventures(); boolean using_upcs_curr = false; # ...