To location

From Kolmafia
Revision as of 13:01, 26 January 2015 by imported>Eliteofdelete
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

location to_location(int convert )

location to_location(string convert )

  • convert is the int or string to convert

Returns the location that matches name or id as specified.

Special

While direct casting via $location[ ] is case-insensitive and able to catch partial matches, this function has the added benefit of passing variables as a string parameter.