Import: Difference between revisions
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>#... |
imported>StDoodle mNo edit summary |
||
Line 12: | Line 12: | ||
# ...</pre></p> | # ...</pre></p> | ||
{{Format}} |
Revision as of 16:23, 6 May 2010
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; # ...
Formatting Needed