Forum Discussion
JudyNollet
3 years agoSuper Hero
- Insert 3 number-entry fields. When you do, Storyline will automatically assign a variable to hold the value for each.
- I suggest you rename them, e.g., n1, n2, n3, or something like that.
- Create two T/F variables: one to track whether the 1st number is less than the 2nd number and one to track whether the 2nd number is less than the 3rd number.
- Set the default value to False. When both are True, that'll mean the numbers follow the rule.
- Add a button to submit the entries.
- Add triggers to the button that adjust the T/F variables based on a comparison of the appropriate numbers. For example, the first trigger might look like this:
- Add triggers to that button that shows the proper feedback based on whether or not both T/F variables are TRUE.
- Have a "Try Again" button with triggers that reset the T/F variables to False and that change the numbers to 0 (or blank).
FYI: Here's more info about variables and conditions:
- https://community.articulate.com/series/articulate-storyline-360/articles/articulate-storyline-360-user-guide-how-to-work-with-variables
- https://community.articulate.com/series/articulate-storyline-360/articles/articulate-storyline-360-user-guide-how-to-work-with-triggers#conditions
- It's worth the time to learn about these, because they provide the real power in Storyline.
Note: So, that part is doable. However, it's harder to check whether the user has really figured out the rule. You could have them type something into a short-answer question. But they'd have to type *exactly* what you indicate is correct. Or you could just show them the rule if they get a certain number of tries in a row correct, or after a certain number of attempts. To do that, you'd need more variables. :-)