Difference between revisions of "To plural"
Jump to navigation
Jump to search
imported>Grotfang (Create page) |
imported>StDoodle m (extra pipe removed) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
name={{#var:name}}| | name={{#var:name}}| | ||
− | |||
− | |||
function1={{Function| | function1={{Function| | ||
Line 26: | Line 24: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
eat(3 , $item[hot hi mein]); | eat(3 , $item[hot hi mein]); | ||
− | print( "You have eaten 3 " + to_plural($item[hot hi mein])); | + | print("You have eaten 3 " + to_plural($item[hot hi mein])); |
</syntaxhighlight> | </syntaxhighlight> | ||
}}| | }}| | ||
− | see_also={{SeeAlso| | + | see_also={{SeeAlso|to_item}}| |
− | |||
}} | }} | ||
+ | |||
+ | [[Category:Item Management]][[Category:Datatype Conversions]] |
Latest revision as of 04:34, 1 March 2011
Function Syntax
- it is the item you want to return the plural of.
Returns the plural of an item in the form of a string.
Code Samples
Prints diet information after eating.
eat(3 , $item[hot hi mein]);
print("You have eaten 3 " + to_plural($item[hot hi mein]));