I am hoping someone can help me fix my code in order to have a student’s table value entries show up as correct (with a checkmark) on the teacher dashboard. I have managed to do this for all of my multiple choice questions, however I would also like to do it for the numerical values the students enter into a table.

Here is my attempted code:

figure1number = table1.cellNumericValue(1,1)

figure2number = table1.cellNumericValue(1,2)

figure3number = table1.cellNumericValue(1,3)

correct = when (figure1number =15)

and (figure2number = 17)

and (figure3number = 19)

otherwise 0

Thank you in advance for your help!