Else Action

image\Action_Programming_Else.jpg

The Else action allows you to run a group of actions when the condition in an If action is not met. An Else action can only be added to an If action.

Often when you are checking whether a certain situation exists before you perform an action you will have other actions that you want to perform if that situation is not the case. For example, if you create an If action that states if a user scores 50% or more, then show a Congratulations message, wait 10 seconds and then move to the next page – but what happens if they score less than 50%? In this example, you could use an Else action to send the user back to a page of revision before getting them to take the test again.

Note:
Obviously you could set up an If statement to check the opposite case but Opus provides a simple way of combining the opposite case into the same statement by offering the Else action. Basically this allows you to say If XYZ is true then do these actions, but otherwise (Else) do these actions.

Important Note:

This is an example of a Conditional action – If you are unfamiliar with what a Conditional action does, please read Explaining Conditional actions before you read the rest of this section.

Setting up the Else action:

  1. An Else action can only be added to an If action. That means you must have added an If action before you can add the Else action – see If action for more information.

  2. Select the If action in the Actions Organiser that you want to add the Else action to – when it is selected it will be highlighted in blue.

  3. Double-click the Else icon in the Programming menu. This will automatically add the Else action to the If action.

Note:
The Else action will appear underneath the If action list but at the same level as the If action.

  1. Now add your actions to the Else action – see Adding Actions to an If and Else action for more information.

Note:
The group of actions attached to the Else action will only play when the condition in the If action is not met. In other words, either the If action list or the Else action list is played but never both in one operation.

Related Topics:

Understanding Conditional Actions

Introducing the Programming Actions

Choosing an Action