2020.2

Table Of Contents
8.
Type the Value or values (each on a new line) that should be used for the conditional
check.
Values (in Strings) are case sensitive, unless the option Case insensitive is checked.
Dates should be entered in ISO standard notation (yyyy-mm-dd).
The selected action will be performed if the condition evaluates to true with one of the
given values.
If, conversely, the condition evaluates to false, and the option Toggle Visibility is
checked, the opposite action will be performed.
Note
If you need more complex conditions, click Expand and edit the code of the script.
See "Writing your own scripts" on page853.
9.
Click Apply or OK.
10.
To see the result, toggle to the Preview tab at the bottom of the workspace (or select View
> Preview View on the menu).
Showing or hiding several elements with one conditional script
To apply one conditional content script to several elements, a CSS class or HTMLelement
needs to be used as the selector of the script. When you select multiple elements and create a
new conditional content script following the actions described in "Showing or hiding elements
using the Conditional Content Script wizard" on the previous page, a CSS class will be applied
automatically.
If you have created the script yourself, or if you want a script to apply to more elements later on,
you have to do this manually.
1.
Double-click the conditional script in the Scripts pane to reopen it.
2. Make sure that the selector is a CSS class (for example, .male) or an HTML element with
a certain CSS class (for example, p.male). See "Using the Text Script Wizard" on
page788 for further explanation on selectors.
3. Apply the same CSS class to all elements that should be shown or hidden under the
condition that you have set in the conditional script. Click each element and type the class
(without the preceding dot) in the Class field.
Page 797