XpressDox Help Center

Use Google To Find Help Fast, e.g. xpressdox choosefromlist

Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email support@xpressdox.com for assistance

The Plural Function

The Plural Function

Generic documents such as contracts often have numerous places where constructs such as “is/are” or “child/children” appear, or else the singular is always used document has a preamble has words to the effect of  “masculine usage includes feminine and singular includes plural”.

With document assembly, and XpressDox in particular, the template can provide instructions in conditional assembly which can insert the correct words in the places where they are required.

An example would be

The name«Plural(count(Child),' ','s')» of my child«Plural(count(Child),' is','ren are')» «ForEach(Child)»«When(position() > 1, and )»«Name»«End()»

Sometimes the number cannot be inferred using count() and has to be requested explicitly either in an interview or perhaps in data retrieved from a data source which is nonetheless not repeating.  In this case a boolean expression can be used in place of count():

The name«Plural((OnlyOneChild = 'Y'),' ','s')» of my child«Plural((OnlyOneChild = 'Y'),' is','ren are')» «ChildNames»

Leave a Reply