When – XpressDox

The When command can be used when the text to be included or excluded is small, is text only (i.e. contains no further data elements) and requires no MS Word formatting.

 

Example 1: Plurals

This fax consists of «NumberOfPages» page«When(NumberOfPages != 1,s)».

Note that != means “not equal to”.

 

Example 2: Pronouns

If appropriate, «When(Gender = "Male",he,she)» will be required to use public transport to get to work.

 

Example 3: Plurals and Pronouns in the context of repeating data

«When(count(Plaintiff) > 1,Plaintiffs are,Plaintiff is)»

«When(count(Plaintiff) > 1,Plaintiffs' address,Plaintiff's address)»

 

 


Related articles:

Conditional processing

The Iif function