# Fraction Answer in Table-Correctness

**URL:** <https://cl.desmos.com/t/fraction-answer-in-table-correctness/4109>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [March 2, 2022, 6:25pm UTC](https://cl.desmos.com/t/fraction-answer-in-table-correctness/4109 "2022-03-02T18:25:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amy\_Towriss](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/amy_towriss/32/1549_2.png) [@Amy\_Towriss](https://cl.desmos.com/u/Amy_Towriss)\
**Post date:** [March 2, 2022, 6:25pm UTC](https://cl.desmos.com/t/fraction-answer-in-table-correctness/4109/1 "2022-03-02T18:25:38Z")

</div>

Hi all,

I am trying to get a table to check for correct slope and here is my CL below. I want the correct answers to be 7/9 and -9/7. I have tried both options below and when you hit Check Work they both are marked as incorrect. How can I fix to accept a fraction?

Thanks

submitButtonText: “Check my work”

isCorrect1= tbl6.cellContent(1,2)=“\frac{7\left(9\right)}”  
isCorrect2= tbl6.cellContent(2,2)=“-9\left7\right”

cellContent(1, 3):

#when button7.pressCount\>0 and isCorrect “👍✅”  
when tbl6.submitted and isCorrect1 “👍”

when not(tbl6.submitted) “”

otherwise “❌ Try again..”

cellContent(2,3):  
when tbl6.submitted and isCorrect2 “👍”

when not(tbl6.submitted) “”

otherwise “❌ Try again.”

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [March 2, 2022, 8:14pm UTC](https://cl.desmos.com/t/fraction-answer-in-table-correctness/4109/2 "2022-03-02T20:14:33Z")

</div>

latex for fractions is `\frac{numerator}{denominator}`.

And just a tip, if you make the not submitted line your first when condition, then you can leave out the submitted part of the correctness condition.

```auto
when not(tbl6.submitted) ""
when isCorrect2 "thumbs up"
otherwise "Try again."

```

I don’t think there’s submit buttons for tables anymore though, so I use this alternative for the first line:

```auto
when isBlank(this.cellContent(1,2)) or this.cellHasFocus(1,2) ""

```

which has the added benefit of feedback remaining because it doesn’t rely on a button. (As long as tbl6 is the component you’re editing CL, you can use “this” instead of it’s name.)
