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 ListDelimiter Function


The ListDelimiter Function

List and CommasAndList are used to produce delimited lists either of repeating data elements (List) or data elements (or variables) containing a concatenated delimited list (CommasAndList).

ListDelimiter provides similar capabilities, but more under the control of the template author.

A typical example would be where a repeater containing clauses needs to be represented with each clause except for the last two ending in a semi colon, and the second last one ending in “; and ” :

<<ForEach(PurchaseClauses)>>
<<Clause>><<ListDelimiter(position(),last()-2,';','; and ')>>
<<End()>>

This instructs XpressDox to insert a semi-colon after every Clause until it gets to the second-last one, at which point it inserts “; and” and thereafter (i.e. after the last one) it inserts nothing.

Leave a Reply