To phylum: Difference between revisions
Jump to navigation
Jump to search
imported>Bale r9982 |
imported>Eliteofdelete Updated |
||
Line 15: | Line 15: | ||
}}| | }}| | ||
function_description=Converts the specified string {{pspan|name}} to a phylum | function_description=Converts the specified string {{pspan|name}} to a phylum. Does not account for case sensitivity and partial matches.| | ||
code1={{CodeSample| | |||
title=Code Samples| | |||
description=Following example shows basic to_phylum operations.|| | |||
code= | |||
<syntaxhighlight> | |||
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"); | |||
</syntaxhighlight>| | |||
moreinfo= | |||
It gives the following output. | |||
<pre> | |||
FiSh gives none. | |||
human gives none. | |||
humanoid gives humanoid. | |||
</pre> | |||
}}| | |||
}} | }} | ||
[[Category:Datatype Conversions]] | [[Category:Datatype Conversions]] |
Latest revision as of 15:18, 26 January 2015
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.