# Let students see the teacher tick/cross

**URL:** <https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437>\
**Category:** Questions\
**Created:** [January 20, 2021, 3:20pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437 "2021-01-20T15:20:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Mullis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_mullis/32/1979_2.png) [@Simon\_Mullis](https://cl.desmos.com/u/Simon_Mullis)\
**Post date:** [January 20, 2021, 3:20pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/1 "2021-01-20T15:20:58Z")

</div>

Hello, there.

I have done the following:  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/5/56d8f78fbfe4720f5c4298ed0f81fd50eac51690.png)

In the \</\>… bit, I put:  
correct:  
(this.cellContent(1,3) = `2n^{2}` and this.cellContent(2,3) = `7n^{2}` and this.cellContent(3,3) = `4n^{2}` and this.cellContent(4,3) = `10n^{2}`)

This gives me a tick/cross on the teacher screen. Is there any way I can put this tick on the student screen as well?

Many thanks,  
S Mullis

---

<div class="post-metadata">

**Author:** ![JAC9186](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jac9186/32/5018_2.png) [@JAC9186](https://cl.desmos.com/u/JAC9186)\
**Post date:** [January 20, 2021, 4:01pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/2 "2021-01-20T16:01:02Z")

</div>

you can use cellSuffix sinks to accomplish that

Something like  
cellSuffix(1,3): when this.cellContent(1,3) = `2n^{2}` “✔” otherwise “”  
cellSuffix(2,3): when this.cellContent(2,3) = `7n^{2}` “✔” otherwise “”  
cellSuffix(3,3): when this.cellContent(3,3) = `4n^{2}` “✔” otherwise “”

cellSuffix(4,3): when this.cellContent(4,3) = `10n^{2}` “✔” otherwise “”

You can add more conditionals if you’d like, and you could work off of something more precise than the student text/LaTeX string, but that should produce a check in the cell when students have matched your expected LaTeX and leave the cell blank when the student doesn’t match your expected LaTeX.

---

<div class="post-metadata">

**Author:** ![Simon\_Mullis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_mullis/32/1979_2.png) [@Simon\_Mullis](https://cl.desmos.com/u/Simon_Mullis)\
**Post date:** [January 20, 2021, 4:09pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/3 "2021-01-20T16:09:24Z")

</div>

> [@JAC9186](#):
>
> ore conditionals if you’d like, and you could work off of something more precise than the student text/LaTeX string, but that should produce a check in the cell when students have matched your expected LaTeX and leave the cell blank when the student doesn’t match your expected LaTeX.

Brilliant! Thanks for this.

I’ve tried it, but it’s giving me an orange road-sign:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/d/d562a47b559a304477d2b8cae209fb49f71b1c2c.png)

---

<div class="post-metadata">

**Author:** ![Simon\_Mullis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_mullis/32/1979_2.png) [@Simon\_Mullis](https://cl.desmos.com/u/Simon_Mullis)\
**Post date:** [January 20, 2021, 4:18pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/4 "2021-01-20T16:18:35Z")

</div>

Sorry! I’m being silly. It doesn’t like it when I copy-and-paste the quotation marks.

I’ve typed in " instead. Now it works.

It seems silly that I can’t just say:  
ifCorrect, “correct” otherwise “not correct”

---

<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:** [January 20, 2021, 5:26pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/5 "2021-01-20T17:26:07Z")

</div>

> [@Simon\_Mullis](#):
>
> It seems silly that I can’t just say:  
> ifCorrect, “correct” otherwise “not correct”

For tables, I usually make a “check” variable for each answer, then use those Booleans for the cellSuffix and correct sink.

```auto
correct: check1 and check2 and check3 and check4
check1= this.cellContent(1,3) = `2n^{2}`
cellSuffix(1,3): when check1 "✅" otherwise "❌"
#Rinse and repeat

```

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [January 20, 2021, 6:01pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/6 "2021-01-20T18:01:00Z")

</div>

Hey Simon!

Just double checking - the wrong format quotation marks only happen when you paste them in and not when you type quotes, correct?

Double checking to make sure we don’t have a bug situation. Thanks!

---

<div class="post-metadata">

**Author:** ![Simon\_Mullis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_mullis/32/1979_2.png) [@Simon\_Mullis](https://cl.desmos.com/u/Simon_Mullis)\
**Post date:** [January 20, 2021, 7:10pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/7 "2021-01-20T19:10:48Z")

</div>

Hello, Jay.

Yes: wrong quotes only happen when I copy-and-paste.

---

<div class="post-metadata">

**Author:** ![Simon\_Mullis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_mullis/32/1979_2.png) [@Simon\_Mullis](https://cl.desmos.com/u/Simon_Mullis)\
**Post date:** [January 20, 2021, 7:51pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/8 "2021-01-20T19:51:54Z")

</div>

Thanks, Daniel.  
My computer didn’t like it:  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/b/b64bd9acd25333b76005b5d6ef44716f7b825c8f.png)

Am I being silly?

---

<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:** [January 20, 2021, 9:43pm UTC](https://cl.desmos.com/t/let-students-see-the-teacher-tick-cross/2437/9 "2021-01-20T21:43:15Z")

</div>

It’s because you haven’t defined check2, check3 and check4 yet. (The “Rinse and Repeat” was intended for you to define the other checks and cellSuffixes. Sorry for the confusion.)  
The full code should be:

```auto
correct: check1 and check2 and check3 and check4

check1= this.cellContent(1,3) = `2n^{2}`
cellSuffix(1,3): when check1 "✅" otherwise "❌"

check2= this.cellContent(2,3) = `7n^{2}`
cellSuffix(2,3): when check2 "✅" otherwise "❌"

check3= this.cellContent(3,3) = `4n^{2}`
cellSuffix(3,3): when check3 "✅" otherwise "❌"

check4= this.cellContent(4,3) = `10n^{2}`
cellSuffix(4,3): when check4 "✅" otherwise "❌"

```
