pluralize


Returns the second string if the parameter is greater than one. Otherwise returns the first string


Syntax


{{ <Parameter> | pluralize: <Singular Value>, <Plural Value> }}



Arguments

Parameter - An integer value or name of the input parameter to use


Singular Value - A string literal that the contains the value if the parameter value is 0 or 1


Plural Value - A string literal that the contains the value if the parameter value is greater than 1


Example 1:

InputParameter Value


3



Input


{{ InputParameter | pluralize: 'student', 'students'}}



Output


'students'



Example 2:

Input


{{ 1 | default: 'sale', 'sales'}}



Output


'sale'