Numeric question validation criteria based on previous question response

I want to set the validation criteria of a numeric question to not be greater than the numeric response of a previous question. If I understand correctly, you identify the question by putting the name within ${} but then how do you say that the response has to be <= the response of the previous question?

I need to manually enter the validation logic in XLSForm Code as I am working with KoboCollect for this survey. I don't think this is super complex, but I'm new to this.

Thank you!

Hi @taylorvail

please take a look at Constraints
There you can find a sample: . <= 150 in your case you just need to change 150 to ${question_name}