Since row1a is a numericValue, you might need to put backticks for it to work. Or since it’s numericValue, it might be a decimal in that form, unlike cellContent.
I’ve tried it both ways, but unfortunately I can’t get either to work. Other suggestions?
row1a=table.cellNumericValue(1,1)
correct1a=numericValue("\abs(${row1a}-(7/3))")<=0.001
#checks for mixed number of 2 1/3
Mixed1a=table.cellContent(1,1)="1/3+2"
mixed1a=countNumberUsage(`row1a`,2)=1 and countNumberUsage(`row1a`,1)=1 and countNumberUsage(`row1a`,3)=1
countNumberUsage needs latex input (i.e. table.cellContent(1,1)). You’re still using row1a which is equivalent to the cellNumericValue, which is a decimal. It should work if you do this:
Got it! Thanks for y’all’s help!
I changed the row1a to cellContent, but also needed to remove the row1a in the countNumberUsage
row1a=table.cellContent(1,1)
correct1a=numericValue("\abs(${row1a}-(7/3))")<=0.001
mixed1a=countNumberUsage(table.cellContent(1,1),2)=1 and countNumberUsage(table.cellContent(1,1),1)=1 and countNumberUsage(table.cellContent(1,1),3)=1