Variable Error When Attempting to Show Layers
I'm running into an issue with a pre-test scenario I'm trying to build in Storyline 2 and I hope someone can help me with it.
I've built a course that has 7 sections and a course-end assessment. I'd like learners to be able to attempt the assessment once if they'd like to try to "test out" of the course; if they don't pass, they are then required to finish each of the 7 sections before the option to take the assessment is available again.
To that end, I've created two variables: ShowPretest (True/False) and ShowTest (Numeric).
1. Show PreTest is, by default, set to true and it enables a link on the Title slide to access the final assessment scene.
Once the learner launches the assessment (by clicking a Start button), ShowPreTest is set to False. I've configured the player to always resume, so there's no way to "reset" this variable once triggered.
2. ShowTest is set to 0 by default and each time a learner answers a section-end knowledge check question, it is incremented by 1.
So if a learner goes through an entire course, ShowTest should equal 7 (or more if they repeated sections/activities).
On the first slide in my Assessment scene, I have two layers: Start and Don't Start.
Start contains the "start assessment" button (see #1 above). Don't Start has a "return to previous slide button."
What I want to do is to display the Start layer if ShowPreTest=True OR ShowTest>=7 and display the Don't Start layer if ShowPreTest=False OR ShowTest<7.
The ShowPreTest variable seems to be working correctly -- I get the link to go to the assessment from the title screen. However, when I get there, I see the Don't Start layer (even after I delete and republish the course, so theoretically ShowPreTest=True and ShowTest=0).
I think the problem is the triggers, specifically the conditional statements, I'm using to determine which layer is displayed on the assessment scene's first slide. They are:
From this description, any ideas as to where to look next? I'm at a dead-end.