Index

Tutorial Videos

Tutorial videos are available here.

Knowledge Base

Visit our User Forum for discussions & solutions

All commands regarding Repeating Data – XpressDox

All XpressDox commands regarding repeating data

 

Here is a consolidated list of all XpressDox commands regarding the handling of repeating data. Click on each command for a more detailed article.

 

ForEach()
Repeat data elements and/or text. Repeats can be nested to any number of levels i.e. ForEach’s within ForEach’s.
«ForEach(Party)»«Name»«End()»

You can use the Repeater Question button on the ribbon if you are using v14 of XpressDox. However this Low Code method of inserting a repeating question into your template is restricted to one level of repeats only.

 

last()
Get the last item in the set of repeated elements.
«Party[position() = last()])»«Name»«End()»

 

Ordinal()
Get the ordinal inside a ForEach.
«ForEach(Defendant)»«Ordinal(,First,Second,Third,Fourth,Fifth,Sixth,Seventh and Subsequent)»«Name»«End()»

 

position()
Returns the position (a numeric value) of the ForEach.
«Party[2]/Name»

 

RepeatWhile()
Repeat a block while a condition remains true.

 

count()
Returns the number of repeated items (a numerical value). This is useful to ensure that the plurals on documents is correct.
«count(Party)»
«when(count(Party) > 1,Defendants,Defendant)»

 

list()
Produce a comma delimited list from repeating data.