Check Sum of two numeric inputs

How do I check that two numeric inputs have a sum of -2?

Here is what I have so far?

initialLatex: “Q=”

check: P+Q=-2

correct: check

your logic is right, you just have to make sure you’re rendering a number.

you have to do a numericValue check of P+Q. maybe:


^^this, but also “check” needs to be followed by an = not a : .

Thank you. This worked.