Conditions

Inserted or changed with LCOS 8.50

You can specify any number of conditions for an element. Conditions in different lines are AND operators; conditions in one line are OR operators.

The instructions for the wizard can add conditions to any element in a section. Conditions always refer to the previous element. They consist of a class specifier and one or more condition patterns. A pattern consists of two operands and one operator.

If a condition contains multiple condition patterns in one line, the wizard evaluates this expression as an OR operator.

If the instructions contains multiple conditions relating to a parent element on separate lines, the wizard assesses the expression to be an AND operation.

The instructions can include the following classes:
The condition pattern can contain the following operands:
The condition pattern can contain the following operators:

Examples:

The following condition only displays the section if the internal variable 'wizard.test_select' is equal to '0'.

section
only_if wizard.test_select, "0", equal

The following condition sets the internal variable 'wizard.intranet_name' to the value 'INTRANET' if this variable is empty.

set wizard.intranet_name, "INTRANET" only_if wizard.intranet_name, *, empty

The following condition sets the internal variable 'wizard.target_1' to the value 'TARGET_1' if the internal variable 'wizard.select_target' is set either to '1' or '5'.

set wizard.target_1, "TARGET_1" only_if wizard.select_target, "1", equal, wizard.select_target, "5", equal