Forum Discussion
Using multiple variable conditions in a trigger
Hello, I have a grid with nine boxes that I want learners to click. I've set it up so that each box toggles between states ("normal" and "clicked") when it's clicked. I created the variable "v_box_count" with a beginning value of "0" to count the number of boxes that have been clicked. I also created variables for each box: "v_clicked1", "v_clicked2", v_clicked3", "v_clicked4", v_clicked5", v_clicked6", v_clicked7", v_clicked8", and "v_clicked9". All of those variables have a beginning value of "false" and toggle when the learner clicks the corresponding box. I want Storyline to count each box click and display the number in the box in the order that it's clicked. If the learner clicks the box twice in a row, I want Storyline to remove that click from the count and return the box to its normal state. At the end, I want all nine boxes numbered in the order they were clicked. The problem I keep running into is that as other boxes are clicked Storyline continues to update the "v_box_count" variable (regardless of the "v_clicked#" value for that box). How do I work around this? Thank you!