Desktop User Guides > Author > Changing the questionnaire order > Adding general conditional logic > Creating a condition block > ElseIf item
ElseIf item
An ElseIf item of a Condition block consists of one or more conditions and one or more actions to take if the conditions are met. If the conditions are not met, control passes to the next ElseIf item, if any in the Condition block. If there are no additional ElseIf items, control passes to the Else item if present; otherwise control passes to the next item following the Condition block in the current routing. A Condition block can have one or more ElseIf items.
To add an ElseIf item
1 In the Routings pane, select the Condition block to which the new ElseIf item should be added.
2 Click Insert > Routing Item > Condition > ElseIf
If desired, replace the automatically generated name of the item and/or enter a description for the item. Names must be unique, cannot be empty and can contain only letters, numbers and the characters _ @ $ # . The first character must be a letter or _. Names cannot contain spaces.
3 Select one or more questions from the Routings pane or the Questions pane to use as the conditions for the ElseIf item, then click the Add button.
4 The selected questions display in the ElseIf item's logic builder section.
You cannot add a single or multiple response question or grid question as a condition if the question does not contain any responses. Set up the responses for the desired question in the Design pane before adding the question as a condition.
Specify the conditions for the selected questions. How you define the conditions depends on the question types. For more information, see Adding conditions. When you add multiple conditions, the conditions are displayed on separate lines. You can select a line to change or remove it. For more information, see Working with multiple conditions.
You can also drag questions to use as conditions from the Routings pane or the Questions pane in the main UNICOM Intelligence Author window to the Logic tab of the ElseIf item. This requires that double‑click navigation is enabled (Tools > Enable Double Click Navigation).
5 Add items to the ElseIf item. ElseIf items can contain questions and routing items, including other Condition blocks. You can add items in a variety of ways:
Drag one or more items from the Routings or Questions pane onto the icon for the ElseIf item.
Select the ElseIf item and insert a new question or routing item from the Insert menu.
When adding additional items to an ElseIf item, you can select an existing item within the ElseIf as the target. The items will be added after the selected item. Selecting the ElseIf item itself results in adding the new items after any existing ones.
If required, create script filters for the conditions. Script filters allow you to define expressions that cannot be directly parsed for IfBlock, If Go To, and Skip-and-Fill items. For more information, see Adding script filters.
See also
Creating a condition block