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.
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.
Hi, my suggestion is to create a third variable (true/false) which became as "True" if the variables connected to the continue button and to the next button are also "True". In that way the third variable became the main one to drive your next step.
I'm sorry, but in this case I have to disagree with that suggestion. I would not recommend over complicating the process that way. It not only makes it harder to follow, but can make it harder to get it working. It is usually best to go with the simplest and most efficient solution.
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.
I didn't explain that well. But I think you captured it. I wanted to assign a variable on two objects: so if a learner clicked on the next button, it would become true, or if they clicked on the continue button, it would become true, and upon the change to True, execute an action.
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.
7 Replies
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
Hi, my suggestion is to create a third variable (true/false) which became as "True" if the variables connected to the continue button and to the next button are also "True". In that way the third variable became the main one to drive your next step.
Hi Andrea,
I'm sorry, but in this case I have to disagree with that suggestion. I would not recommend over complicating the process that way. It not only makes it harder to follow, but can make it harder to get it working. It is usually best to go with the simplest and most efficient solution.
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.
I didn't explain that well. But I think you captured it. I wanted to assign a variable on two objects: so if a learner clicked on the next button, it would become true, or if they clicked on the continue button, it would become true, and upon the change to True, execute an action.
Hi Deanna,
Were you able to make it work the way that you want then?
Dave
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.