Conditional Values

Many settings in the Property Editor are conditional values. A conditional value can be set directly, via a main setting, as well as from a formula.

Conditional values are useful when the setting should change based on the situation. A common example is selecting different values based on the type of device (shown below). Calculations can be used to derive value for numeric fields or link them to values set in form fields or Data Objects and Data Queries.

When a setting is conditional, the title has a collapsible arrow next to it. Clicking this arrow will expand the conditional Formula Editor above the main setting.

Here is an example of a conditional setting - for the Font setting:

The labeled items in the picture perform the following functions:

A - Collapsible Title

The setting name is preceded by an arrow. clicking this arrow will expand / collapse the conditional editor area (B) . This area is initially shown collapsed if no conditional settings were specified.

B - Condition Builder

This lets you build a formula. See Formula Editor on how to build a conditional formula using menus.

C - Interactive Value Selector

This lets you specify a unchanging value from a drop-down, page selector, radio button or similar user interface. The value selected here is used for the setting if no conditional value has been set.

D - Value Display

To help you with selecting one or more values in the conditional area, this area displays the current value selected in the interactive value selector - whenever this is changed. It lets you see how the equivalent value may be specified inside the conditional builder.

Pressing the "Play" button will evaluate the current conditional value and show it instead.

Last updated