Forum Discussion
Need help with variables for scavenger hunt
Hi everyone,
I am trying to create a virtual scavenger hunt where users have to enter three locations where an item is hidden. I have added three text boxes for the answers. I want the slide to show a layer called Correct when all three locations have been entered. I have set up the variables like this:
Show layer Correct if:
Text box 1 is = location 1
or Text box 1 is = location 2
or Text box 1 is = location 3
or Text box 2 is = location 1
or Text box 2 is = location 2
or Text box 2 is = location 3
or Text box 3 is = location 1
or Text box 3 is = location 2
or Text box 3 is = location 3
However, if a user enters location 1 in all three boxes, the layer shows up.
Can anyone help me with how to set up the variables so that the layer only shows if there are different answers in all three boxes?
Thanks!
- AngeCommunity Member
Hi Yewande, Not sure of your set up, but off the top of my head this may help. If not can you share your file, a more informed view would make it easier to come up with a more fitting solution. At a glance, it looks like you are missing precise Conditions.
There are 6 permutations for the correct answer : 3! = 3 × 2 × 1 = 6
Permutations are: 1,2,3 OR 1,3,2 OR 2,1,3 OR 2,3,1 OR 3,1,2 OR 3,2,11,2,3 Show correct layer IF
Text Entry 1 = Location 1 AND
Text Entry 2 = Location 2 AND
Text Entry 3 = Location 3
OR
1,3,2 Show correct layer IF
Text Entry 1 = Location 1 AND
Text Entry 2 = Location 3 AND
Text Entry 3 = Location 2
OR
2,1,3 Show correct layer IF
Text Entry 1 = Location 2 AND
Text Entry 2 = Location1 AND
Text Entry 3 = Location 3etc. for all six permutations as described above.
- yewandedaniel-aCommunity Member
Thank you so much. That worked.