2020.1

Table Of Contents
Tip
When one of the included data fields is empty, the respective line, including the
prefix and suffix, is skipped. The result of the script will be shorter, causing the rest
of the content to move up or down. If, in a Print context, you don't want the result of
the script to be part of the text flow (for example, when a letter is going to be sent in
an envelope with a window), put the placeholder for the script in a positioned box
(see "Boxes" on page250 and "How to position elements" on page300).
Tip
l An example of how to create an address block using the Text Script Wizard is
described in a how-to; see How to create an Address Block.
l To use only part of a data field, or to split the data, you will have to write a script. For
an example, see this How-to: How to split a string into elements.
Formatting variable data
When a Text Script, made with the Text Script Wizard (see "Using the Text Script Wizard" on
page339) adds variable data to a template, it can easily change the way the data are formatted
as well. This is done in the Text Script Wizard through a special formatting modifier or a format
mask for each field that the script adds to the template.
Note
The locale influences the way dates, times, numbers and currencies are formatted; see "Locale" on
page323.
Formatting can be applied to values in a Dynamic Table via the data-format attribute. See:
Formatting values in a Dynamic Table.
You could also format data in a script using the formatter; see "Standard Script API" on
page769.
Page 343