To phylum

From Kolmafia
Jump to navigation Jump to search

Function Syntax

phylum to_phylum(string name )

  • name is the phylum name to convert

Converts the specified string name to a phylum. Does not account for case sensitivity and partial matches.

Code Samples

Following example shows basic to_phylum operations.

string first, second, third;

first = "FiSh";
second = "human";
third = "humanoid";

print(first+" gives "+to_phylum(first)+".", "blue");
print(second+" gives "+to_phylum(second)+".", "blue");
print(third+" gives "+to_phylum(third)+".", "blue");

It gives the following output.

FiSh gives none.
human gives none.
humanoid gives humanoid.