Specifications
3. Once you are satisfied with the changes, press the "Update variable" button.
9.3 Defining a condition with variables
Conditional properties that support variables can be edited with the "Define condition with
variables" property editor. A conditional property has a Boolean result (true or false). For example,
the file filtering properties on connections are conditional properties.
The property editor discussed here offers a user interface to create comparison expressions with
support for locating a variable and entering its arguments.
Its more advantageous to compare variables from a job with other variables (for example: from
an external source like database or dataset). Therefore, Switch allows users to select multiple
variables when setting up a condition. Select one of the following three property editors in the
drop-down menu (highlighted in the screen given below):
• Inline Value
• Text with Variable...
• Script Expression...
The example condition is true if the job being tested contains a single file smaller than 5MB, or
if one of the associated email addresses has the 'gradual.com' domain.
Defining a condition
The property editor has two distinct parts:
• The main dialog box which allows defining one or more comparisons between a variable and
a constant value, forming the condition.
• The pop-up dialog box which serves to locate a variable and enter its arguments, similar to
defining text with variables.
122
Enfocus Switch 10