Difference between revisions of "Enable"

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
(Create page)
 
imported>Grotfang
m
Line 28: Line 28:
 
}}|
 
}}|
  
see_also={{SeeAlso|disable|map_to_file}}|
+
see_also={{SeeAlso|disable}}|
 
}}
 
}}

Revision as of 23:47, 10 March 2010

Function Syntax

void enable(string func )

  • func is the name of the function you wish to enable.

This function allows you to specify a disabled function that you wish to re-enable. Note, enable("all"), as you may expect, enables all disabled functions.

Code Samples

Disabling map_to_file() to prevent writing into your data files can be useful when testing. This snippet re-enables the function.

enable("map_to_file");

See Also

disable()