Using variables, you can create conditional actions. Conditional actions are actions that will only execute when a logical variable statement such as MyVariable equals 1, is true. You can specify single or multiple conditions for an action. This enables you to execute the action, only when the specified conditions have been satisfied.
Consider the following example:
Action A
The action specified on the General tab of the Action Properties window.
MyVariable = 1
The condition specified on the Condition tab of the Action Properties window.
If MyVariable = 1, Action A will execute when the On trigger specified on the General tab of the Action Properties window is fired. If MyVariable is equal to anything other than 1, the action will not execute.
See also: Defining conditions
To place a condition on an action:
In Title Explorer, double-click the graphic of the action. The Action ribbon is displayed.
In the Conditions group, click Always. The Set Action Conditions window opens.
Conditions require the use of a variable. Select the Variable from the list, select a Relationship and enter a Value. If multiple conditions are defined, select whether All of the Following conditions or Any of the Following conditions should be true to execute the action.
You can copy and paste multiple conditions from one action to another. Once you have finished defining your actions, click Copy Conditions. Create the new condition as necessary. Click Paste Conditions to paste the copied conditions to the appropriate row in the table. Click New Variable to define a new variable. Click the corresponding in the final column to remove a condition.
Click OK.
The conditions are defined.
See also: |
Working with variables |
© Copyright eLearning Brothers 2021