I’m asking students to type inequalities of the form
a\le x\le b
into a column of a table. I’d like to isolate the numbers a and b that the students type for use inside of CL. In other words, I’d like to be able to define a number in CL script that equals whatever students type in for a, and another number for b. I guess I will also need a warning message when students type something that doesn’t match the intended form.
In the “Types” section of the CL documentation there is a lot of stuff about patterns and matching which may be relevant here, but there is no code sample so I’m not quite sure how to use these features.