Forum Discussion
Trouble with Variables and Ranges
I have a branching path scenario that I want to end with the user having a Good, Moderate, or Poor outcome based on their choices. Here is the setup to attempt to achieve this:
I've set each slide with three choices, each one giving a different value. Good choice = 4, Moderate = 2, and Poor = 0.
I have a variable, "SCORE" that will change depending on the choices the user makes.
By the end of the scenario the user will be taken to the appropriate result slide under the following conditions:
- Good Slide - SCORE variable is 16 (this assume they got every answer correct)
- Moderate Slide - SCORE variable is between 9 and 15
- Poor Slide - SCORE variable is between 0 and 14.
The problem I'm running into is that I don't see how to give a variable value a range, rather than one specific number value. For example, how would I set a trigger so that the user will end up with the Moderate result should they fall within the point range I've listed?
Am I maybe setting up this activity totally wrong all together and there is a better way?
Thank you in advance!
2 Replies
- MichaelHinzeCommunity Member
In your JumpToSlide xyz trigger you can add a condition with the "Between two values" option (click the = sign and select select from the dropdown) and then specify and low and high value for the Score.
- NedimCommunity Member
If your custom SCORE variable is numeric, you can define conditions using a range between two values, as shown below:
Once on the results slide, you can display the appropriate layer based on the score value, as shown below:
Good Slide - SCORE variable is 16
Moderate Slide - SCORE variable is between 9 and 15
Poor Slide - SCORE variable is between 0 and 8.
Your logic for Moderate Slide SCORE variable between 9 and 15 and Poor Slide SCORE variable between 0 and 14 will cause an issue because the ranges overlap (from 9 to 14). This means some scores would meet both conditions, leading to incorrect or conflicting results.