Hi Sean,
that’s a lot of code to work through on a screenshot, so I haven’t
At first glance it all looks OK, but the first thing I would try is to change all the assignments at the start of your code by ending them with …(“Checkbox”) .value;
a Checkbox is an object, not a number, usually Javascript/expressions are smart and ‘cast’ the object to be its value according to the context, but maybe in this case that’s what’s breaking.
Also, and perhaps that’s the more likely culprit:
I would group all conditions of the if check into a set of parentheses, so don’t say:
if (a ==1) || (b==1) {
but:
if ( (a==1) || (b==1) ) {
In practice you could also dismiss all the ==1 because if they are 1, they are already True.
if ( a || b)