I’m trying to get my activity to tell a student if they got the answer correct and what I’ve done works if the answer only has an exponent of 1 (x) but when I try the same technique with x^2 it doesnt recognize it. Any ideas?
isCorrect= input1.latex = “x^2”
isDoubled = input1.latex = “2x”
content:
when input1.submitted and isCorrect “That is correct!”
when input1.submitted and not(isCorrect) and not(isDoubled) “Try again, remember that area is (length)(width)”
when input1.submitted and not(isCorrect) and isDoubled “That means 2 times x, not x times x, try again.”
otherwise “”