Checking Table values for inequalities

not sure what is wrong with this code:

Screen Shot 2020-11-20 at 9.39.03 AM

In your numericValues, you need a $ before the { } to be able to access that variable.

   when ...
   ... numericValue("8*${pointAx}+4*${pointAy}... etc.

I am still getting an error

Screen Shot 2020-11-20 at 10.35.30 AM.png

Instead of the isUndefined try Check0.pressCount=0. I think the lastValue might be the issue.

Also, you can publish and then share your activity, so people can just jump in and test things. It’s a little easier to work with than screenshots.

I published it:

Found it. <80 shouldn’t be inside the parentheses for numericValue, and you’ve got a few characters in front of the first line in your button.

I made those corrections but it still is not working

When you’re testing, are you using exact solutions? In which case, it should be <=80.

I am just looking for solutions less than 80

Still looks like you didn’t fix the <80 inside the numericValue. It should be this:

...when numericValue("8*${pointAx}+4*${pointAy}") <80 ...
1 Like