When we design e-learning courses, we often want to be able to do things conditionally. For example, we’d like to have the ability to say, “If the learner has viewed this entire video, move on to the next slide” or “Once all of these buttons have been clicked, show this piece of content.” This is called conditional interactivity—interactivity that only occurs when certain conditions are met. We can do things conditionally in Articulate Storyline by adding conditions to triggers. Here’s how:

The first thing you need to do is add a basic trigger using the Trigger Wizard:

To add a condition to this trigger, click Show Conditions.

Next, click the “+” icon to open up the “Add Trigger Condition” window.

Notice that the “AND/OR” field is grayed out and unavailable—it only becomes available after you’ve added your first “If” statement. Once you have one “If” statement, you can build onto its complexity using the “AND/OR” drop-down menu to add additional “If” statements.

The list field gives you the option to choose either “Variables,” “Shapes,” or “Window.”

If you choose “Variables,” the drop-down field will display all the variables in your project and ask you to select the one involved in this condition. It will also ask you to choose an operator for your condition. Operators are:

  • == (equal to)
  • == (equal to; ignore case)
  • != (not equal to)
  • != (not equal to; ignore case)

You must select one of these operators and then define either a value or a variable, depending on your project.

If you select “Shapes,” it will show you all the objects on your slide and ask which one you want involved in the condition. The operators for shapes are either

  • == (equal to)
  • != (not equal to)

Case is no longer important since they are objects, not text values. Once you select an operator for a shape, it will ask you to select a state from the drop-down menu.

You also have the option to select “Window,” which lets you set up a condition based on whether the slide is inside the player frame or inside a lightbox.

Hopefully you now have a clearer understanding of “If” statements in Storyline and how important they are to adding conditional interactivity. Do you have any tips of your own for using conditions? Please tell us about them in the comments below!

Want to try something you learned here, but don’t have Articulate software? Download a free 30-day trial, and come back to E-Learning Heroes regularly for more helpful advice on everything related to e-learning.