# Answer Check for Table Inputs

**URL:** <https://cl.desmos.com/t/answer-check-for-table-inputs/3732>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [October 7, 2021, 3:06am UTC](https://cl.desmos.com/t/answer-check-for-table-inputs/3732 "2021-10-07T03:06:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lizzie\_Nolan](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@Lizzie\_Nolan](https://cl.desmos.com/u/Lizzie_Nolan)\
**Post date:** [October 7, 2021, 3:06am UTC](https://cl.desmos.com/t/answer-check-for-table-inputs/3732/1 "2021-10-07T03:06:52Z")

</div>

> **[Template: Table with "Correct" Check on Teacher Dashboard • Activity by...](https://classroom.amplify.com/activity/615e62f078eaad09f18d7269)**
>
> by Lizzie Nolan

I’m trying to get the grey checkmark to show up when students enter the correct values for the side lengths of the rectangles. My graph is read-only, and I have taken away any possible places that students can enter values in the table except for where I want them to enter values, and I’m still only getting a grey dot.

Any ideas? Thanks in advance!  
Lizzie

---

<div class="post-metadata">

**Author:** ![SandiG](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sandig/32/1895_2.png) [@SandiG](https://cl.desmos.com/u/SandiG)\
**Post date:** [October 7, 2021, 5:42am UTC](https://cl.desmos.com/t/answer-check-for-table-inputs/3732/2 "2021-10-07T05:42:59Z")

</div>

You have `correct` as a defined variable, not a sink.  
try the code below.

```auto
#vars, can use `this` as an alias for current component
figure1number = this.cellNumericValue(1,1)
figure2number = this.cellNumericValue(1,2)
figure3number = this.cellNumericValue(2,1)
figure4number = this.cellNumericValue(2,2)

#single answer boolean
test= 
(figure1number =2) 
and (figure2number = 3) 
and (figure3number = 4) 
and (figure4number = 6) 

correct: test

```

---

<div class="post-metadata">

**Author:** ![Lizzie\_Nolan](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@Lizzie\_Nolan](https://cl.desmos.com/u/Lizzie_Nolan)\
**Post date:** [October 7, 2021, 12:54pm UTC](https://cl.desmos.com/t/answer-check-for-table-inputs/3732/3 "2021-10-07T12:54:00Z")

</div>

That works perfectly! Thank you!!
