True or False variable not changing state of image

Nov 25, 2013

I have an interaction where I want to click a yes or no checkbox. On the next page I want an image to appear after the variable changes to true.

I thought I've done everything that needs to be done, but the image will not change to the desired state.

What am I missing?

3 Replies
Ashley Terwilliger-Pollard

Hi Virgil and welcome to Heroes!

Thanks for sharing your Storyline file here for us to take a look at. The trigger you had set up to change the state of the variable was set to be triggered when the state of "SeattleCheck" changed - but there was nothing to change it on that slide. What I did instead was set a condition to check that the variable SeattleCheck had already changed to True, and if so, to change the state of your image as you'll see in the trigger image below - this now works as you'd expect.

Virgil Simpelo

Hello Ashley,

Thank you for the warm greetings. I have been utilizing E-Learning Heroes for over 6 months now and the staff are wonderful about answering questions, as well as the contributors This is the first time I've posted a question.

The trigger is now working how I wanted it. Yay!

So the logic here is that if the variable has changed in a previous slide, then select "Timeline starts" in a later slide if there is to be an action based on the previous slide's variable?

In short, we have to assume the variable has already changed. That makes more sense.

Thank you so much, Ashley!

Ashley Terwilliger-Pollard

Hi Virgil,

Thanks for the AWESOME award! We think our community is pretty awesome too.  

You're correct, the trigger as you had it set up was waiting for the variable to change - but it already had changed, so when visiting that slide the trigger was working as expected. So in that type of scenario, you'll want to set the trigger with the condition as shown, that if the variable equals (or is not equal to) then the trigger happens or state changes, etc.

I think variables and conditions are one of the trickier things to understand, but you'll get there! Tom Kuhlman often talks about triggers in the sense of "what do you want to do, and when do you want to do it." If you keep that mentality as you work through setting them up I think that helps with the logic. Also, trigger order will matter - so the order they're listed in the trigger panel is the order they'll be executed. 

Let us know if you need anything else! :-)

This discussion is closed. You can start a new discussion or contact Articulate Support.