Plural Function
Description:
The specified plural text or the specified singular text according to the numeric value being greater than 1 or not.
This would often be used to test if the repeat context of a variable is more than 1 eg: variables such as NumberofBorrowers or NumberofGuarantors that are used as part of a repeat could be tested to see if a plural noun or singular noun is needed.
Returns:
Text
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Whole Number | The whole number. |
2 | Text | The plural text. |
3 | Text | The singular text. |
Examples:
When using functions inside a field, remember the field brackets:
{Plural(NumberofBorrowers, "Each Borrower", "The Borrower")}
Expression | Result |
|---|---|
plural( 3, "Guarantors", "Guarantor" ) | "Guarantors" |
plural( 1, "Guarantors", "Guarantor" ) | "Guarantor" |
plural( 0, "Guarantors", "Guarantor" ) | "Guarantor" |