Difference between revisions of "To element"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Datatype Conversions|
 
  
 
function1={{Function|
 
function1={{Function|
Line 22: Line 21:
 
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.|
 
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.|
 
}}
 
}}
 +
 +
[[Category:Datatype Conversions]]

Revision as of 05:21, 22 May 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.