Check Value of a Fraction in Table CL

I’m trying to get my table to check the value of a fraction in a table. Students could input, 1/2 or any other equivalent fraction. I’ve combed cl.desmos but haven’t found the solution.
I started with this, but it only checks for the input of the decimal, not the value of the decimal. Any suggestions?

isCorrect1 = this.cellNumericValue(1,2)= 0.5

So, to clarify you want students to enter a fraction equivalent to 1/2, but not accept the decimal answer. I would do this:

isCorrect1= this.cellNumericValue(1,2)= 0.5 and countNumberUsage(this.cellContent(1,2), 0.5)= 0

(Edited: removed .latex to fix it)

That didn’t quite work.
I found this to work to check for the fraction:

isCorrect1 = when this.cellNumericValue(1,2)=0.5 or this.cellNumericValue(1,2)=50 

But when I tried using countNumberUsage(this.cellContent(1,2).latex, 0.5)= 0
it came up with the warning:

I would like to add the code to not accept the decimal form though.

I took out the “.latex” and it seems to work fine. Your top level declaration error is because you have when but no otherwise I think.

That works for me now too.
I originally didn’t have the end of it:

row1a= when this.cellNumericValue(1,2)=0.5  and  countNumberUsage(this.cellContent(1,2), 0.5)= 0 1 otherwise 0

Thanks for the help on that!