The NEW XpressDox Version 14 is now available!

Edit Content
Click on the Edit Content button to edit/add the content.

Conditional Logic

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 from the ribbon and notice how all the field names from your template appear in

Read More »

All commands regarding Conditional Logic – XpressDox

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 provided on each of the command names.   Eq Test whether two strings match each

Read More »

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.

Read More »

Conditional inclusion of paragraphs and clauses

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.

Read More »

Conditional Numbering of Paragraphs

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 that if there are a number of parties to be listed, the paragraphs in which

Read More »

Working with Section Breaks

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 issue for the template author when one or more sections are included (or excluded) from

Read More »

Working with Page Breaks

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 «If» command. For example: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. «If(Type = ‘Long’)»……………………………Page

Read More »

Conditional Capture

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.

Read More »

Trouble shooting Conditional Capture

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.

Read More »

Trouble shooting Ends and Elses

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.

Read More »

Relevance

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 «CompanyRegistrationDate» will cause a simple text control to appear in the interview for data element

Read More »

Advanced Conditional Logic

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 and older. OR My child <ChildName> is not a teenager but in any case, being <Age>,

Read More »

The GT and LT functions

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 “names” or “name” in the caption depending on the number of children): «Caption(DependantNames,Enter the <IIf(count(Child)

Read More »

Get the Last Day of the Month

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 be achieved using the LastDayInMonth function. Brute Force Method Assume that you have a data

Read More »

Testing parts of a string

1. 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 previous versions this command was known as starts-with. Backward compatibility ensures that XpressDox will still recognize this command. 2. EndsWith tests the

Read More »

Configuring Helper Folders in XpressDox

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.

Read More »