Checking Text Answer in CL

If student input is exp1b, you could try using parseEquation, differenceFunction, and evaluateAt. It’s probably a good idea to create a single variable/boolean to check in your note. For example:

#This creates an expression of the left-hand side minus the right-hand side with variables x and y.

checkThis=parseEquation(exp1b).differenceFunction(“x”,“y”)

#This creates a true/false boolean by checking 2 correct solutions to the function

check=checkThis.evaluateAt(1,2)=0 and checkThis.evaluateAt(2,3)=0

content: when exp1b.timeSinceSubmit>0 and check “Excellent!”
otherwise “Almost! Try again.”

Your original content when otherwise won’t work for a few reasons.
I think you wanted 2 conditions to show ‘Excellent’. Each “when” should have a condition and result. ‘otherwise’ is the result if none of the ‘when’ conditions are true. So, you can’t have 2 ‘otherwise’