2018.1

Table Of Contents
Note
More complex conditions can be written in the Script Editor: click Expand and edit
the code of the script. See "Control Scripts" on page711.
8.
Click Apply or OK.
9.
To see the result, toggle to the Preview tab at the bottom of the workspace (or select View
> Preview View on the menu). Take a look at the Resources pane: on each Print section
that is affected by a Conditional Print Section script a small decorator appears if it is
skipped with the current data record.
Dynamic Images
Dynamic images are called dynamic because they are switched, depending on the value of a
data field. This way, a template can be adjusted to different customers.
Adding dynamic images
Dynamic images can be added to the template using the Dynamic Image Script Wizard only if
you have:
l One or more data fields that contain values on the basis of which the images can be
switched.
l An appropriate image for each group of customers. All files should be of the same type
and they need to be stored in one folder (the Images folder on the Resources pane, or
an external folder). It is important that they are named after the various possible values of
the related data field. Adding dynamic images that are not named after a data field value
requires a self-made script.
To use the Dynamic Image Script Wizard:
1. Add one image to the template. See "Adding images" on page601.
2.
Right-click the image and click Dynamic Image. Or select the image and click Source
(not the field, but the label before the field) in the Attributes pane.
The Dynamic Image Script Wizard opens.
The image's ID is used as the script's selector. If the image did not have an ID, it is
automatically generated.
Page 682