Forum Discussion
Branching back and forth using Variables
In my first mock up I setup 3 variables - Sales, Care, Tech, and set each one to True if they clicked on a certain path (using a button widget just as a test) on the intro slide. Does that logic of using variables to control action work if you setup more than one variable or is it the case that you need to setup one variable and use different values to control something like branching in this case?
It can work either way, but there are two things you need to remember.
1) The actions are executed in the order the triggers appear in the trigger pane.
2) ALL the triggers that are associated with that action are executed every time that action happens.
So it is possible that all of your list is executed, but the last action is the one that you end up with. The only exception to this is if there is a trigger in the list to jump to another slide. That action to jump ends the execution of the list.
So it depends on what you want. If you want an action (click, etc.) to cause two different resulting actions, you should use two different (perhaps T/F) variables. If you want only one out of a possible variety of resultant actions, you are probably better off using one variable with different values.
In the case of your example, there is some sort of corruption with the triggers on the Sales button. I discovered this by inserting a text box, going to the Insert tab, choosing reference, and selecting Branching. When I previewed the menu slide only, that showed me that clicking on Sales caused an attempted jump, but not a change in the Branching variable. Deleting both triggers for sales, and re-creating them solved the problem for me.
Walt - thanks for the input!!! SO...let me ask....in my example then what's the best course of action in your mind....considering that there may be a number of slides in the course where people need to go from a common slide to a slide where each track has a different slide - which option works best? Should I setup a single variable that changes values based on their role selection at the beginning or should I setup three separate variables, and branch using those variables.
Related Content
- 2 months ago
- 12 months ago
- 12 months ago