To string

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

Function Syntax

string to_string( any anything)

  • anything is any data type that KoLmafia uses

Returns any datatype as its string equivalent.

Special

Note that this function isn't needed for print() and string concatenation, as KoLmafia handles conversions transparently in those cases; however, this function is still useful for passing a non-string value as a string parameter, or a part thereof.