Import

From Kolmafia
Revision as of 16:23, 6 May 2010 by imported>StDoodle
Jump to navigation Jump to search

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