variable changes in two places

Jul 23, 2020

Hi there,

I was wondering if it is possible to have a variable set to True in two places:  On the continue button on a feedback layer, and also on the 'next' button (which is on the same slide as the layer).  I have tried, but the triggers I have created only work when the variable changes to True with the continue button. 

Thanks

7 Replies
Dave Cox

Hi Deanna,

I'm not really sure what you are asking here, so please forgive me if I over-explain this for you.

A True/False variable can only be True or False. You can set the variable from any trigger that you like, and as many times as you like. But you can only set it to True or False. If the variable is already set to True, and you set is to True again, the result is that it will still be set to True. So, yes you can set the variable from as many places as you like. If the variable isn't changing to true when you expect, then I suggest you look for a problem with your trigger. 

Dave

Walt Hamilton

Deanna,

It would help to know what you are doing, but I'm going to guess that the trigger that doesn't work is one that initiates when the variable changes. Like Dave says, once the variable is True, setting it to true again doesn't cause a change.

If Dave and I are guessing wrong, attach your .story file here, and someone can look at it and help you.

Walt Hamilton

Unless you need the variable for some other use in some other spot in your project, you don't need the variable.

If the user clicks next, execute the action, then jump to Next slide.

If the user clicks continue, perform the action, then do whatever action Continue does.

If you are using the variable someplace else, just add a change variable to true trigger to both the Next and Continue buttons ->  Change variable, then perform action, then jump.

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