Variable Sets Correctly, But If Statement is Ignored
Nov 02, 2015
By
Mark McEvoy
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
This works fine, you had missed a condition on the incorrect, but testing in preview it definitely skips
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.
I didn't check the other way. Sorry will look when I switch on again
Sent from my iPhone
The timeline on the correct feedback layer is set to 0, and the trigger is set to jump when timeline ends. It shows, and then closes faster than you can see it.
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.
LOL (oops!...showing my age..."haha"). Walt, you were definitely sending out psychic waves! No sooner did I finish up my last note, I saw your note. Thank you for your response.
This post was removed by the author
We all have those moments Mark - not to worry and glad you got it figured out! :)
This discussion is closed. You can start a new discussion or contact Articulate Support.