The CountOf Function

by Peter on July 27, 2010

in User Reference

Post image for The CountOf Function

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()>>

Related posts

Leave a Comment

Please remember your comments are subject to our comment rules.