Inflect

Merges the value that represents the plural or singular form of a word based on a count.

SYNTAX
{{inflect count singular plural include}}
PARAMETERS
Name Type Required Description
Count Number Required The number to be evaluated.
Singular Text Required The singular form of the word.
Plural Text Required The plural form of the word.
Include Boolean Optional Whether or not to include the count before the word. The default is false.
EXAMPLES

The examples below are based on the following sample content:

You have {{inflect Contact.Tickets "ticket" "tickets" true}}

A. Contact’s tickets field has the value 3

You have 3 tickets

B. Contact’s tickets field has the value 1

You have 1 ticket

C. Contact’s tickets field has the value 3 and include is false

You have tickets
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us