2022.1

Table Of Contents
3. Type an ID and/or a class. An ID is fine if this is the only thing that should be shown or
hidden on a given condition. Use a class if there is more that should be shown or hidden
on the same condition.
4. Start creating a conditional content script from the Scripts pane. Use the ID or class as
the selector of the script. See "Showing or hiding elements using the Conditional Content
Script wizard" on page355.
Conditional Print sections
You can include or exclude entire Print sections from the output, depending on a field’s value.
This can be done using the Conditional Print Section Script Wizard, described below.
Alternatively you could write a Control Script (see "Control Scripts" on page425).
Including or excluding Print sections using the Conditional Print Section Script wizard
To open the Conditional Print Section Script wizard:
l Right-click the section and click Make Conditional.
l Alternatively click the black triangle on the New button on the Scripts pane at the bottom
left of the window, and click Conditional Print Section Script. Double-click the new
script to open the Conditional Print Section Script wizard.
In the wizard, first make the following settings.
1. Rename the script so that it reflects what the script does.
Note
Scripts can only have the same name when they are not in the same folder. (See
"Managing scripts" on page396.)
2. Select the section you want to put a condition on.
3. Set the Action: Print or Skip that is performed when the condition below is true. The
opposite action is applied when the condition returns false.
Once these settings have been made, the condition can be build.
Page 359