To plural

From Kolmafia
Revision as of 23:04, 8 March 2010 by imported>Grotfang (Create page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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()

Special

SPECIAL_NOTES_SUCH_AS_NOT-LOGGED-IN_VALUE