Forum Discussion

MeganKite's avatar
MeganKite
Community Member
11 months ago

True/False Variable - Conditions Help

I've watched a T/F Variable on-demand training and skimmed the discussion boards, but I haven't found exactly what meets my need. I'm building in a knowledge check (I used the "Pick Many" freeform question slide), and the learner has to make 2 selections in a specific order for the answer to be right. I'm still a novice with SL360, and I just don't think I'm applying the right variable or perhaps missing a condition? I've attached a screenshot of the image and the order in which the buttons must be selected. I just haven't found a way for the "Incorrect" slide layer to appear when the learner submits the correct answer in the incorrect order. Any thoughts?

  • I don't think you should use true false variables. The simple answer is to add text to the question "Select two answers" if they select more than or less than then they are wrong.

    If you want to enforce two, then I would add a counter, create a variable (counter). Create a layer (Check)

    On the layer add triggers

    set counter to 0

    add 1 to counter if option 1 = selected

    add 1 to counter if option 2 = selected

    add 1 to counter if option 3 = selected

    add 1 to counter if option 14 = selected

    Submit if counter = 2

    Show layer "Select 2" if counter ≠ 2

    ON "Select 2" layer add instructions to select only 2

    On submit button change trigger to show layer "Check"

    • MeganKite's avatar
      MeganKite
      Community Member

      Let me know if you see it now, Michael. I guess it didn't save when I initially submitted my question. I think part of my issue is using a quiz question, especially since we're not necessarily measuring pass or fail? But at the same time, I want the learner to have 2 chances to get the answer correct.

      • JudyNollet's avatar
        JudyNollet
        Super Hero
        Megan Kite

        ... I think part of my issue is using a quiz question, especially since we're not necessarily measuring pass or fail? But at the same time, I want the learner to have 2 chances to get the answer correct.

        A Pick Many question scores the question based on which items are selected when the answer is submitted. It doesn't care about the order in which the items were selected.

        You could force the learners to first choose an item in upper "Select a Source" area. Do that by hiding the lower "Select where to send source" area until one of the upper items is selected. Probably the easiest way to do that is to cover the lower area with a white rectangle, and then hide that rectangle when any object in the upper area is Selected. 

        Another option: Use a Pick One question "hidden" behind your actual question.

        • Add two objects off the slide, each with a Normal state and a Selected state. Put them in a Button Set. For example, call them "Answer Correct" and "Answer Incorrect." 
        • Use your T/F variable that changes to True it an item in the upper area is selected first.
        • On the Submit button, add a trigger that changes the state of the "Answer Correct" object to Selected with the conditions that the T/F variable = True, and the correct upper object = Selected, and the correct lower object = Selected, and all of the other objects ≠ Selected. Include an Else statement, so if those conditions aren't met, the "Answer Incorrect" object changes to Selected. 
          • Be sure to put this trigger before the "Submit __ interaction" trigger. 
  • You really need to attach the .story file (or at least the slide in question), so someone can look at your triggers and conditions.

  • MeganKite's avatar
    MeganKite
    Community Member

    Thank you all for your helpful replies! I'm going to give these suggestions a shot and may come back if I need more help; I'll include the .story if I do. I think I need to abandon the idea of allowing users to click any of the 9 options first and only allow them to choose "select a source" buttons prior to "where to send the source" buttons.