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


The ShowIfHasValue Function

This function is used mainly to get rid of empty paragraphs in a document.

<<ShowIfHasValue(AddressLine3)>>

will insert the value of the AddressLine3 data element only if that data element has a non-empty value.  If the value IS empty, then the entire paragraph containing the field is removed.

Note that this behaviour applies even when there is other text in the paragraph, and so the function should be used bearing that in mind.

Before this function was introduced, the only other way to achieve the same result would have been to code the following:

<<If(AddressLine3 != '')>>
<<AddressLine3>>
<<End()>>

Leave a Reply