pluralize()
Description
Returns the plural form of the passed in word. Can also pluralize a word based on a value passed to the count argument.
Function Syntax
pluralize(word [, count, returnCount ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
word |
string |
Yes | |
The word to pluralize. |
count |
numeric |
No | -1 |
Pluralization will occur when this value is not 1. |
returnCount |
boolean |
No | true |
Will return count prepended to the pluralization when true and count is not -1. |
Examples
<!--- Pluralize a word, will result in "people" --->
#pluralize("person")#
<!--- Pluralize based on the count passed in --->
Your search returned #pluralize(word="person", count=users.RecordCount)#
