Building Conditional Expressions |
In programming, a conditional expression is a set of rules that are performed if a certain condition is met. Conditional expressions include one or more data sources, an operator, and a value.
Complex expressions enable you to combine two or more conditions into a single expression. Even the most complex expressions are composed of simple expressions, which are then combined together with conditional joiners to create a final result.
Simple conditional expressions are structured just like a sentence, namely "subject (data source)" "verb (operator)" "object (value)."
Data Source: This is the "subject" of the conditional expression. A typical data source may be a template, a data source, a database table, or a field in a database table.
Operator: This is the "verb" of the sentence. Operators determine the relationship between the data source and the value. A typical operator is something like Equals, Does not equal, Is greater than, and so on.
Value: This is the "object" of the sentence. You enter or select the value to complete a simple expression. A simple expression might look like "Template 1 Equals US Mail" or "Template 2 Does not equal UPS".
Conditional Joiner: Conditional joiners enable you to join two or more separate conditional statements to form a new criteria and create a complex expression. A complex expression might look like "If Template 1 Equals US Mail And Template 2 Does not equal UPS.
To build a complex expression, you must know how to customize conditions, add conditions, and add groups of conditions. General instructions are as follows.
|
The user interface may vary within BarTender's conditional expression dialogs. |
To customize an existing expression
To add a new group of conditions
Related Topics