ICI Modules: str: plural


Modules by name : by type

Synopsis

string = str.plural(string, int [, string])

Description

Returns the plural form of its first argument depending upon of the value of its second argument. If the integer has the value one the input string is returned unmodified. If the integer is not one the plural form of the string is returned. The plural form is formed by appending a string, which defaults to the letter "s", to the input and returning that string. The suffix, if not "s", may be specified as the optional third parameter.