Storyline if condition

Dec 10, 2020

Hello,
I created an interactive slide with 4 buttons. The goal is to ask the participants to choose one of the 4 buttons. A button can contain more than one layer and 2 buttons can refer to the same layer. Is it possible to create a condition or a javascript If button 1 is select then go to layer X, if button 2 is select then go to layer y?

Thank you

1 Reply
Judy Nollet

Hi, Sophie,

You shouldn't need Javascript. You can add conditions to any trigger. A condition can be based on any of the following:

  • The value of a variable
  • The state of a shape (which could be any object on the slide) 
  • The window being used (that is, whether the slide is being viewed in the Player or via a Lightbox)

Also, you can string conditions together with "AND" or "OR." That provides further control about exactly what conditions must be met for the trigger to execute. 

For more info, check out these articles in the User Guide: