Use Google to find help fast. For example, search on "xpressdox choosefromlist".

The CountOf Command

The CountOf Command

This function returns the number of times one string occurs in another.  For example:

<<CountOf('.', IPAddress)>>

will count the number of times the character ‘.’ (full-stop or period) occurs in the data element IPAddress (and put the result into the merged document).

A more typical use of the function would be as part of a conditional statement, for example:

<<If(CountOf('.',Name) < 1)>>The name contains no initials.<<End()>>

Leave a Reply