Comparison of 2 numbers does not appear to be evaluating correctly

Hi,

I'm new to Articulate and have just downloaded Storyline 360 to evaluate. On creating a project to evaluate a sequence of numbers, I kept on getting errors. I've simplified the issue in a .story file that compares 2 numbers entered into 2 number fields. The comparison is: Is number1 < number2. I worked out the answer in 2 different ways to try and test this issue, both of the ways use basically the same logic, but sometimes the answers come out incorrectly, and sometimes different answers are produced by the 2 different methods. I get the following results:

Set number1 = 6 and number2 = 12. This gives me Answer1 =  No and Answer2 = No.

Set number1 = 1 and number2 = 12. This gives me Answer1 = Yes and Answer2 = Yes.

Again, set number1 = 6 and number2 = 12. This gives me Answer1 = Yes and Answer2 = No.

I've attached a screenshot, and the triggers and variables used. Together with the .story file.

I would like to know if anyone else is getting the same results, or if anyone can explain why it is behaving as it is (or what I'm doing wrong!).

Many thanks for your help,

Pete

 

 

 

14 Replies
Leslie McKerchie

Hey Pete - Thanks for sharing your file and allowing me to take a look. I do see the behavior you are reporting, but it seems to be due to the Variable you've set for the ResultFlag1 - you have the answer 1 dependent on it in your file, but nothing ever adjusts this value back to the default of false, so it will always equal True once it changes in your course.

I think you can set this up without this dependency. I deleted that in your triggers and set up answer 1 similar to answer 2. See if this is closer to what you are looking for in the attached.

Peter Locke

Hi Leslie,

Thanks for your reply and for pointing out that I'd not reset the ResultFlag1 variable back to false. I'm still confused though why the condition does not appear to be evaluating correctly when I enter "6" for number 1 and "12" for number 2.....  6 is less than 12, but I'm getting the Answer1 = Answer2 = "No"  when it should be "Yes"?? Do you get the same result (i.e. "No") when you enter the numbers "6" and "12"?

Many thanks for your assistance. Peter

Wendy Farmer

Hi Peter 

i did some testing last night on your file and noticed the same - regardless of whether you use the result flag variable or any other combination of triggers the answer for me was always incorrect. Unfortunately my internet connection went down when I tried to post my reply. I'm out of my office at the moment so can't upload the test file I was playing with but can do so later if you like.

Wendy Farmer

Hi Peter,

see attached sample file.  It doesn't matter which logic we use, variables or in my example a mix of variables and states there is a bug.

If the number on the left has less digits than the number on the right or vice versa - the logic does not work

If the numbers on the left and right have the same number of digits - the logic works.

eg: 1 and 9, 30 and 20, 121 and 150 - all work.

I'm going to do a test in SL2 and see what happens

 

Wendy Farmer
Crystal Horn

Hi everyone!  We just released another update for Articulate 360, and included a few important fixes and new features that you'll see in the release notes here.

We fixed some triggers that didn't always work correctly in HTML5 output, including triggers that execute when clicking outside an object, key-press triggers, and conditions that compare two numbers.

Just launch the Articulate 360 desktop app on your computer and click the Update button for each application.

Let me know if you have any questions, or feel free to reach out to our support team!