Copy link to clipboard
Copied
Hello,
Need some help with resetting variables please (probably a simple fix is needed).
I have a branching scenario - For one of the variables, say X, the default value is 0 and on visiting a specific slide (on enter), it is assigned with 1.
Then later on in the course, if X is greater than or equal to 1, a few other specific slides display. T
Its not working during my previews - I guess X has been incremented with 1 initially. And its not getting reset to 0 on subsequent previews/publishing.
I don't want it to reset during the course. However, even for my preview/testing, it just doesn't get reset 😞
Any ideas will be helpful.
Thanks!
Oops, forgot the last action, bit distracted by multitasking.
You'll need another conditional action which could be triggered on Enter for Slide 21:
IF v_choice is equal to 2 means they choose first the second scenario
Jump to Slide 2
ELSE
Continue
Copy link to clipboard
Copied
I normally will use the On Enter action of slides for reset purposes. You will need to provide more information about the scenario and the actions you are using at this moment to be able to help you set up those On Enter actions.
Copy link to clipboard
Copied
Hi Lilibri,
Thanks for the response. Here is the scenario.
I have a simulation, where based on learner selection of options, the sequencing of slides changes.
Here it goes:
Slide 1 has 2 scenarios/options. Both the scenarios should display irrespective of the order of the options they choose.
Scenario 1: Select - No address match
Scenario 2: Select – Area
Hope it's not too confusing. Any help will be greatly appreciated. Thank you!
Copy link to clipboard
Copied
Trying to summarize:
Assign v_choice with 2
Jump to slide 11
You have to try it out, I have not time to double-check myself. If it could happen that no choice has been made - which is possible when you use a default playbar, let me know.
Copy link to clipboard
Copied
Thanks again Lilibri.
I'm wondering if it would still work if the scenarios have to play one after the other whatever option they choose first. (sorry it that wasn't clear in my post).
Also, a query in this:
Assume I choose the second scenario, so vchoice = 2 and jumps to slide 11. If the above action is executed, since v_choice is going to be 2, it would go to slide 21 instead of slide 12. Isnt'd ?
I'm going to try your suggestion in the morning though, if you have any further input in the meanwhile, please let me know. Thanks so much!
Copy link to clipboard
Copied
Oops, forgot the last action, bit distracted by multitasking.
You'll need another conditional action which could be triggered on Enter for Slide 21:
IF v_choice is equal to 2 means they choose first the second scenario
Jump to Slide 2
ELSE
Continue
Copy link to clipboard
Copied
Lilibiri,
Thanks again - it worked! I had to make a few tweaks to make it work for my case. However, the main catch was:
I set up 0 as default value to the variable. However, did not add this action to reset the variable on each visit.
Thanks again. Cheers!
Copy link to clipboard
Copied
Thanks for coming back to report about succeeding!