To plural: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
mNo edit summary
imported>StDoodle
m extra pipe removed
 
(One intermediate revision by one other user not shown)
Line 28: Line 28:
}}|
}}|


see_also={{SeeAlso|eat}}|
see_also={{SeeAlso|to_item}}|
}}
}}


[[Category:Item Management]]|[[Category:Datatype Conversions]]
[[Category:Item Management]][[Category:Datatype Conversions]]

Latest revision as of 04:34, 1 March 2011

Function Syntax

string to_plural(item it )

  • 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]));

See Also

to_item()