To element

From Kolmafia
Revision as of 15:43, 30 April 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|to_element}}{{ #vardefine:return_type|class}}{{ 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

class to_element(string name )

  • name is the element name to convert

Returns the specified element name as an element.

Special

Note that this function is case-sensitive, as with direct casting. Anything besides the following list will return $element[ none ], including strings with extra or missing characters: cold, hot, sleaze, spooky, stench, slime.