pluralpattern(
VALUE
)

The pluralpattern( function converts a number to text using a pattern, making adjustments for pluralization.


Parameters

This function has one parameter:

value – the number to convert.


Description

This function converts a number to text using a pattern, much like the pattern( function. However, this function also makes custom adjustments for pluralization.

pluralpattern(1,"# train~ are ready to go.") ☞ 1 train is ready to go.
pluralpattern(2,"# train~ are ready to go.") ☞ 2 trains are ready to go.

This function understands three pairs of plural/singular words: are/is, have/has, and people/person. Be sure to use the plural form in the pattern. If the value is 1, the function will convert to the singular form of the word, as shown in the examples above.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0