In complex templates, the balancing of End and Else commands with the matching If or ForEach can become difficult. This recipe explains how to use the Template Painter and the Debug command.
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
Tag: Else
Tag: Else
Trouble shooting Ends and Elses
Conditional processing – If, Else, When
Conditional processing – If, Else, When
Including in or excluding text from a document can be achieved in a straightforward manner with the If, Else and When commands.
The Debug Command
The Debug Command
Missing or superfluous End commands When a template is run, XpressDox will check for missing and floating End commands as well as floating Else commands. Wherever possible, the error message warning about one of these situations will give some context within the document where the relevant command is, so that you can find it easily […]
The If Command
The If Command
Using the If command, chunks of text can be included in or excluded from the merged document depending on values provided by the user in the interview. For example, suppose special wording is required when the Balance_Outstanding is greater than $10000; the If command would be used like this: We note that your account is […]
Using block commands in XpressDox
Using block commands in XpressDox
The ForEach
and If
commands are called ‘block commands’ because they are terminated with a separate End
command. Between the start and end of the block there are other Merge Fields. There is a special behaviour related to block commands to help with eliminating unwanted empty paragraphs when the start and end appear on different paragraphs.