Compound inequalities in one variable-- how to use CL to check

Hi there! I see that this has already been answered, but here’s what I came up with.

Program Description:
Students will reply to a question. If students give the compound inequality 1 <=x <=5, then they will see the following reply: “CORRECT!”

  1. Make a math input component and call it, for example’s sake, domain1
  2. Create a note component with the following CL code:

content: when domain1.latex = “1\le x\le5” “CORRECT!” otherwise “”

Just a side-note: I found that the code 1\le x\le5 is very picky – if there are spaces anywhere there should not be, then the program will not work.

Hope this helps!