In the Condition field, enter a condition, as shown in Figure 11-2. You can also click the XPath Expression Builder icon to invoke the Expression Builder dialog.
If you want to add elseif conditions, highlight the If activity, and select the Add icon to invoke a menu.
Drag and define additional activities into the elseif condition, as needed. These activities are executed if the if branch did not evaluate to true, and this elseif branch evaluates to true.
Click the else label.
Enter a condition or drag and define additional activities into the else condition, as needed. These activities are executed if the if and any elseif branches did not evaluate to true, and this else branch evaluates to true.
Figure 11-4 shows a completed if activity in which each branch includes contained activities.