The If Block (v14) – XpressDox
The ribbon With the launch of XpressDox low code, or version 14, the If Block is now available directly from the ribbon. This makes inserting conditional logic really quick and simple. Open the If Block
Tutorial videos are available here.
Visit our User Forum for discussions and solutions
The ribbon With the launch of XpressDox low code, or version 14, the If Block is now available directly from the ribbon. This makes inserting conditional logic really quick and simple. Open the If Block
This is a consolidated list regarding all commands used with Document Logic. Along with each command you will find a short description and usage example if applicable. However, there are links to more detailed articles
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.
Including in or excluding text from a document can be achieved in a straightforward manner with the If, Else and When commands.
Sometimes there are just too many choices of paragraph or clause to be included or excluded from a document. Using If and Else commands is inappropriate when there are hundreds of combinations. XpressDox has the powerful InsertDocument command to handle just this situation – where the user running the template chooses which clauses should be inserted.
Suppose you have a document where names and other identifying information are listed. They could be parties to a contract or names and addresses of directors of a company, or something like that. Suppose further
Section breaks are used in Microsoft Word® to separate different parts of the same document which typically have different attributes. Such as different orientation (landscape or portrait) and different headers and/or footers. This becomes an
Using a page break in a template is fairly straightforward, even when the page break is conditional. In other words, when the page break is to be included or excluded on the basis of an
The Conditional Capture feature of XpressDox will automatically hide merge fields on the data capture interview. This happens when the document assembly logic in the template renders a data element to be irrelevant in a particular situation.
Conditional Capture can sometimes result in unexpected behaviour, where data elements either are unexpectedly removed from the data capture interview, or appear on the interviewwhen they shouldn’t. This recipe gives some tips on how to trouble shoot these situations.
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.
The term “relevance” refers to the algorithms used by XpressDox to determine whether the control to capture a data element in the interview should even appear in the interview. In the simplest case, the fillpoint
Suppose you would like to write a sentence something like one of the following, depending on the age of a child: My child <ChildName> is a teenager and is allowed to watch movies rated for 13
Sometimes it is syntactically impractical to use the characters < and > in a particular context. For example, you might want to use a Dynamic Caption which is something like this (to use the word
Suppose you want to get the date of the last day of a month. There are a number of ways to achieve this with XpressDox. With version 8.2.1 of XpressDox, this can now very easily
Working with strings in XpressDox templates StartsWith The StartsWith function is used to test whether a string starts with a given string: «If(StartsWith(Surname,’van ‘)»«Title» «Surname» is probably of Dutch descent.«End()» «If(StartsWith(Surname,’van ‘)»«SetV(‘LastPart’,substring-after(Surname,’van ‘))»«End()» In
It is sometimes necessary to test whether at least one (Any) of a group of repeated items meets a particular set of criteria, and also to test whether All of the group meet those criteria. This article discusses how to construct those tests.
In XpressDox Docussembly™ document assembly software any number of Helper Folders can be configured. A typical example of a folder for which this type of shortcut is defined would be one in which letterheads or other standard templates like fax headers, etc. are kept. In this way these standard templates can be kept separately to the templates that use them.