Adding an IfElse condition
You can use If, Else If, Else, and While statements as conditional instructions in a logic extension. These statements evaluate conditions and dictate the flow of logic when the logic extension is processed. When you create an If statement, the system inserts an Else clause.
When you insert or select a conditional statement in the logic extension design page, the system displays an If Else or While panel on the right. In the If Else or While panel, you can click the Launch Criteria Builder icon to open the Criteria Builder window where you can define the required logic for the conditional statements.
To add an If Else condition:
- On the design panel, hover over the location where you want to add an If Else condition and then click the + icon. Select If Else from the Action menu. The system displays the IfElse panel on the right.
- In the If Else panel, enter the description and appropriate labels for the If
Else , If, and Else branch. Note: To add an Else If condition, hover between the If and Else branch and click the + icon.
- Click the Launch Criteria Builder icon. The system displays the Criteria
Builder page containing two panels:
- Criteria Panel (left panel): Displays a criteria table with the Operator, Left Operand, Compare Operator, and Right Operand information.
- Object Selector Panel (right panel): Using this panel, you can filter and select the values for the Left Operand and the Right Operand fields. You can click the Close or Open icons to hide or view this panel.
- In the Criteria Builder window, create your logic by selecting values in the Operator, Left Operand, Compare Operand, and Right Operand fields. Use the Quick Selection and Filer fields in the right panel to select and add values to your criteria.
- Click Close.
Your mappings are displayed in the IfElse panel.
- Click Save.
(Release 9.2.6.3) You can cut and copy the conditional branches from one position and paste them to another position in the logic extension. To do so, right-click the conditional branch and select the Cut Branch, Copy Branch , and Paste Branch options.
