In my previous blog, we have discussed about the magic wand in Articulate Storyline-the trigger wizard. We explored the two drop-down menus Action and When; and how each option in these menus changes the other fields in the wizards. Today in this blog, we will explore this magic wand in more detail to know the other important option- Trigger Condition.
What is a trigger condition?
As the name implies, this option allows us to add one or more conditions to the trigger execution. The When drop-down menu in the trigger wizard may however tellwhen should the trigger be executed, but the trigger condition specifies under what condition the trigger should be executed.
For example, the below screenshot of the trigger with a condition tells you that the trigger will be executed (Jump to next slide) when the user clicks the next button under the condition that the Variable 1 is True. This means that the trigger will be executed when you click the next button only if the variable is true. If the variable is false and you click the next button, the trigger will not execute.
How to add a condition?
I want my trigger to be executed (Jump to next slide) when I click the next button, but the condition would be ─ only when the timeline of the slide ends. If I click the next button before the timeline of the slide ends, the trigger should not be executed. So, let’s see the steps to add such a condition.
First, I will create a small rectangle outside the slide.
Set the initial state of the rectangle to Hidden.
Create a trigger (as shown in the screenshot below) that would change the state of the rectangle to normal when the timeline of the slide ends.
Now, again open the trigger wizard and set the option for the trigger you want to add the condition to. I want to navigate to the next slide. So, I have set the options as shown in the below screenshot.
Once you set all the drop-down menus in the trigger wizard, click Show Conditions.
Click the green plus mark to open the Trigger condition wizard.
Choose any of the three categories displayed in the wizard – Variables, Shapes and Window. I have selected Shapes as I want my condition to depend on the state of the rectangle I’ve created outside the slide.
Set the options as show below.
This condition specifies that the trigger for the next button will execute only when the state of the rectangle is normal.
Click OK after setting the required options.
This is how the trigger wizard of a trigger with a condition will look like. You can add more conditions to this trigger, but remember to use the AND/OR field cleverly according to the requirement.
Similarly, you can add different types of conditions to the triggersto create complex functionality within no time. So, what are you waiting for? Start creating complex functionality and enjoy developing eLearning courses with Articulate Storyline.
Have anything to say? Please do share through your comments.