To plural: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
mNo edit summary
imported>Bale
mNo edit summary
Line 6: Line 6:


name={{#var:name}}|
name={{#var:name}}|
function_category=Item Management|
second_category=Datatype Conversions|


function1={{Function|
function1={{Function|
Line 32: Line 30:
see_also={{SeeAlso|eat}}|
see_also={{SeeAlso|eat}}|
}}
}}
[[Category:Item Management]]|[[Category:Datatype Conversions]]

Revision as of 21:51, 21 May 2010

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

eat()

|