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

Here is what I have so far?

initialLatex: “Q=”

P=input1.numericValue

Q=input2.numericValue

check: P+Q=-2

correct: check

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

Here is what I have so far?

initialLatex: “Q=”

P=input1.numericValue

Q=input2.numericValue

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:

`numericValue("${P}+${Q}")=2`

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

Thank you. This worked.