Difference between revisions of "To element"

From Kolmafia
Jump to navigation Jump to search
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…')
 
imported>StDoodle
m
Line 1: Line 1:
 
{{
 
{{
 
#vardefine:name|to_element}}{{
 
#vardefine:name|to_element}}{{
#vardefine:return_type|class}}{{
+
#vardefine:return_type|element}}{{
  
 
FunctionPage|
 
FunctionPage|

Revision as of 15:43, 30 April 2010

needs(code_samples);

Function Syntax

element 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.