Hello,
I’ve been working on this for a while now and found some codes for it and not for the other. Any suggestions on self-check-in some or all of these questions will be a great help.
Thank you so much for all of your help,
I only see one screen currently (#25), but you may (or may not!) want to consider restricting to a single number input, but it may not matter since evaluation is turned on anyway. Adding a pattern match could help that.
p = patterns
isNumber = p.number.matches(this.latex)
correct = this.numericValue = answer and isNumber
You also may want to reference the input’s correct variable instead of redefining correctness in the feedback note:
correct = problem.script.correct
content: when not(problem.submitted) ""
when correct "Your answer of ${studentAnswer} is correct"
otherwise "Your answer is incorrect!"