To class: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Bale
mNo edit summary
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=Unlike direct casting with $class[ ], this function is case-insensitive. Full name is still required (partial names, or names with extra characters, return $class[ none ]).|
special=Unlike direct casting with $class[ ], this function is case-insensitive. Full name is still required (partial names, or names with extra characters, return $class[ none ]).|
}}
}}
[[Category:Datatype Conversions]]

Revision as of 05:20, 22 May 2010

needs(code_samples);

Function Syntax

class to_class(string name )

  • name is the class name to convert

Returns the specified class name as a class.

Special

Unlike direct casting with $class[ ], this function is case-insensitive. Full name is still required (partial names, or names with extra characters, return $class[ none ]).