Get property

From Kolmafia
Revision as of 23:13, 10 March 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|get_property}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function_category=Miscellaneous| function1={{Function| name={{#var:name}…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

string get_property(string prop )

  • prop is the property to get

Looks for a global or appropriate user preference from the saved files (found in your "Settings" directory) and if it finds one that matches, it returns whatever value is stored for that preference.

CLI Equivalent

The CLI command "get" works similarly.

See Also

set_property()

Special

If a matching preference is not found, this function returns an empty string.