Variable Sets Correctly, But If Statement is Ignored

Nov 02, 2015

I've created a series of quizzes with a custom correct/incorrect layer pair. The layers appear correctly based on the learner's answer. I'd like to take the process up a notch by providing the learner with the ability to stop the correct layer from displaying (you'll understand why after viewing the sample file). I created a true/false variable named "show_feedback" that does set correctly. However, the if-statement in the trigger on the "correct" layer is seemingly ignored. I must be missing something, but don't know what. Please review the attached story file. Any help will be appreciated. Thanks.

 

7 Replies
Mark McEvoy

Hi Phil. Thanks for the quick response. Actually, I didn't miss the condition on the incorrect layer as I always want that to play. And yes...testing in preview will show that it definitely skips...and that's the problem at hand. It always skips. Set the variable to "false," it skips; set the variable to "true," it still skips. So we're left with the initial question as to why the variable is being ignored. With this clarification, does anything pop out for you? I'm stumped.

Mark McEvoy

Gosh I feel so dumb. I found my mistake. The end time for the Correct layer is 0 seconds. There's never a chance to evaluate the variable because the layer's timeline ends, which then triggers the request to go to the next slide. The attached file extends the Correct layer's timeline to 4 seconds, the same length as the Incorrect layer.

I recall seeing this timeline adjustment last night. I guess I was just too tired to make the connection and then correct my mistake.

If you're wondering why I'd like to offer this option, the actual quiz has over 200 fill-in-the-blank slides, focusing attention on how our examiners process insurance claims. After the first few "good job" slides, the response gets to be a bit annoying.

This discussion is closed. You can start a new discussion or contact Articulate Support.