Forum Discussion

DrewAlbert-78e0's avatar
DrewAlbert-78e0
Community Member
4 years ago

Variables and Triggers Not Cooperating

Hi Everyone,

I'm sure I'm doing something wrong, but what it is, I don't know.  I have two main sections and under those, there are three sections each.  In order for the user to get to the end, they must all three of the subsections, be taken back to the main section and complete all three subsections of that.  As of right now, I set up variables to mark the sections as visited when a variable changes.  Additionally, I have a variable set as zero default and each button click adds one.  So, when you complete one of three sections the trigger states to go back to the subsection slide if the numerical value is < 3.  If the numerical value is equal to three then you should be taken to the main section slide.  I've attached the file for reference.  Any help would be much appreciated as this is my first time using this many variables in a project.

  • Hi Drew,

    I see a couple of things. The biggest is that there are triggers on slides  1.5, 18, and 1.9 that are supposed to occur when variables change. Those variables will have changed on other slides, so when you come back to these slides, the triggers will not fire. Change these to trigger on the start of the slide timeline on the condition that the variables are set to true.

    The other thing I see is the incrementing variables for the subsections, which can be problematic, for instance if a user clicks the same button multiple times. You'd be better off with individual T/F variables for each subsection, and instead of having a trigger based on the value of a trigger being 3, make the trigger based on the condition of all three of the T/F subsection variables being set to True.

    I hope this helps.