Multiple correct answers

I have a factoring question that I want to check using computation layer. The question is for the student to factor x^2+6x+8. There are, obviously, two correct answers that the students could give - either (x+4)(x+2) or (x+2)(x+4).

Currently my CL reads:

check1= ans=`(x+2)(x+4)`
check2= ans=`(x+4)(x+2)`
submitDisabled: this.submitCount=1
correct: check1 OR check2

Unsurprisingly, this is not working. Is there a way to make this work?

1 Like

Works for me. Should be in the input CL, not a note or other component.

1 Like