To class: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{ #vardefine:name|to_class}}{{ #vardefine:return_type|class}}{{ FunctionPage| name={{#var:name}}| function_category=| function1={{Function| name={{#var:name}}| aggregate={{#va…'
 
imported>StDoodle
mNo edit summary
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=|
function_category=Datatype Conversions|


function1={{Function|
function1={{Function|

Revision as of 22:39, 13 March 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 return $class[ none ]).