Using 'Or' variable for text choices
Aug 08, 2016
By
Adam Hain
This discussion references this post: https://community.articulate.com/download/brain-teasers?page=1#comment-47856
The example asks users to input a word to then checks if the word is correct. However the spelling must be exact. I was hoping to use the 'or' variable to allow for multiple answer variations, but didn't have much luck. I know there is a quiztype that allows for variations so I might try that route but I wanted to get thoughts from the community on this in general.
Thanks!
4 Replies
I wonder if you could check the input before submitting. When the user clicks Submit, check for as many optional conditions as you like, and if an acceptable variation is found, change the input to the correct response before continuing to submit.
Hi Walt, that's a great idea. I' d have to take a look to see if that would work but that might do it!
I had a little luck changing the trigger for incorrect from 'variable equals' to 'variable changes' then putting my OR statement in the conditions. For the first item (pretty please), I added the or statement on the incorrect side but made the whole trigger 'when variable changes'. Then I added prettyplease as an OR part of the test. When I ran it this way, both pretty please and prettyplease gave me a green (correct) box. Anything else gave me red.
Here's the modified file
This discussion is closed. You can start a new discussion or contact Articulate Support.