Mark expression correct

How do I mark an expression in math input correct. Such as x = 4 or r = -3?

Here’s how I handle it. You don’t need to use check, but I make a variable (Boolean) in case you want to also use it to give students feedback.

check= this.numericValue=4   #this outputs true or false
correct: check   #when check is true, it's correct. false it's incorrect