To class: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 20: Line 20:
needscode=yes|
needscode=yes|


special=Unlike direct casting with $class[ ], this function is case-insensitive. Full name is still required (partial names 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 ]).|
}}
}}

Revision as of 15:40, 30 April 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 ]).