In the </>… bit, I put:
correct:
(this.cellContent(1,3) = 2n^{2} and this.cellContent(2,3) = 7n^{2} and this.cellContent(3,3) = 4n^{2} and this.cellContent(4,3) = 10n^{2})
This gives me a tick/cross on the teacher screen. Is there any way I can put this tick on the student screen as well?
Something like
cellSuffix(1,3): when this.cellContent(1,3) = 2n^{2} “” otherwise “”
cellSuffix(2,3): when this.cellContent(2,3) = 7n^{2} “” otherwise “”
cellSuffix(3,3): when this.cellContent(3,3) = 4n^{2} “” otherwise “”
cellSuffix(4,3): when this.cellContent(4,3) = 10n^{2} “” otherwise “”
You can add more conditionals if you’d like, and you could work off of something more precise than the student text/LaTeX string, but that should produce a check in the cell when students have matched your expected LaTeX and leave the cell blank when the student doesn’t match your expected LaTeX.
For tables, I usually make a “check” variable for each answer, then use those Booleans for the cellSuffix and correct sink.
correct: check1 and check2 and check3 and check4
check1= this.cellContent(1,3) = `2n^{2}`
cellSuffix(1,3): when check1 "✅" otherwise "❌"
#Rinse and repeat
It’s because you haven’t defined check2, check3 and check4 yet. (The “Rinse and Repeat” was intended for you to define the other checks and cellSuffixes. Sorry for the confusion.)
The full code should be:
correct: check1 and check2 and check3 and check4
check1= this.cellContent(1,3) = `2n^{2}`
cellSuffix(1,3): when check1 "✅" otherwise "❌"
check2= this.cellContent(2,3) = `7n^{2}`
cellSuffix(2,3): when check2 "✅" otherwise "❌"
check3= this.cellContent(3,3) = `4n^{2}`
cellSuffix(3,3): when check3 "✅" otherwise "❌"
check4= this.cellContent(4,3) = `10n^{2}`
cellSuffix(4,3): when check4 "✅" otherwise "❌"