Having desmos access accuracy for inequalities

I want students to write in the domain and range of a function in inequality notation. Is there a way for desmos to assess the correctness of this out side of writing this:

when it comes to normal problems this is what I normally use:
f = simpleFunction("-1")
value = simpleFunction(input8.latex).evaluateAt(9)
correct = when f.evaluateAt(9)=value “Correct” otherwise “Not there yet, keep working”
content: “Solve for the missing variable
Your answer: ${correct}.”

Is there a way to do something similar for an answer that looks like this: 2<x<=3

There is this thread:

I tried something with rawExpression and with simpleFunction, but couldn’t get the restrictions to work using the CL.