Adding Actions to an If and Else action

Adding actions to an If action or an Else action is the same as adding any action to a trigger. However, it is important that the actions you want to run for the If or Else action do NOT appear at the same level in the Actions Organiser. Compare the two illustrations below:

Example 1:

Example 2:

image\If_Action_Example_1.jpg

image\If_Action_Example_2.jpg

In Example 1: the If action contains three actions: first it will show a Congratulations message, wait 10 seconds and then go to the next page in the publication. These actions will only happen when the condition in the If action is met, in this example therefore, if the SCORE_PERCENT variable contains a value greater than or equal to 50, the group of actions will play.

In Example 2: the If action contains two actions: first it will show a Congratulations message then wait 10 seconds. Like the first example, these will only happen when the condition in the If action is met. However, the Go to Page action will always happen when this action is triggered that is because it is at the same level as the If action and is NOT part of the group of If actions. In other words, the user will always go to the next page, whether they scored above or equal to 50% or not.

To add an action to an If or Else action:

1. Select the If or Else action in the organiser– the selection will be highlighted in blue (as illustrated in Example 1 and 2 above).

2. Select your action from one of the menus in the Actions tab of the Actions dialog.

3. Double-click on your selected action. This will be added to the selected If or Else action and placed at the bottom of the list. For example, if a new action was added to Example 1 above, it would appear after the Go to Page action; in Example 2, it would appear after the Delay action.

Related Topics:

the IF action

The Else action