# Student feedback on slide

**URL:** https://cl.desmos.com/t/student-feedback-on-slide/2766
**Category:** Questions
**Created:** [February 25, 2021, 9:54pm UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766 "2021-02-25T21:54:26Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Alicia\_Clark](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/alicia_clark/32/2064_2.png) [@Alicia\_Clark](https://cl.desmos.com/u/Alicia_Clark)
#### Post date: [February 25, 2021, 9:54pm UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/1 "2021-02-25T21:54:26Z")

</div>

I’m looking to have a slide let students know when they have entered the correct coordinates into a math input on a slide. I wanted to write the code to have it display “Yes, you’ve got it” when they enter the correct coordinates or “Please try again” when they enter them incorrectly. I got most of the coding correct using what I saw on another activity that someone else created, but I don’t know why I’m getting this error (see screenshot). I also should mention that I really know 100% understand what the coding is saying, but I get it a little. Thanks for your help! ![script](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/9/953aec3621916d1a5eaa0c481c0c6cd513391692.jpeg)

 ![Screenshot (22)](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/9/9321651afe4f3b9f9b82067a6403808fc96bbd27.png)

---

<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: [February 25, 2021, 10:22pm UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/2 "2021-02-25T22:22:55Z")

</div>

You didn’t close the string on your second when statement. You need a closing " at the end.

The contextual highlighting is really helpful. Purple is strings, red is logic statements, black is variables/objects/properties/functions, green is sinks/sources, orange is LaTeX, and grey is comments.

---

<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: [February 25, 2021, 11:30pm UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/3 "2021-02-25T23:30:11Z")

</div>

There should also be a period between Input1 and latex. It’s also better to use backticks (same key as ~ by the 1) for comparing latex instead of quotes.

```auto
a= `(6,2)`
content: 
when isBlank(Input1.latex) ""
when Input1.latex=a "Yes, you got it!"
otherwise "Please try again."

```

---

<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: [February 26, 2021, 12:36am UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/4 "2021-02-26T00:36:25Z")

</div>

Yeah, LaTeX comparison is more robust. Still have to put in answers with `x-2` and `(x-2)` though.

But then you can generate a `simpleFunction()` and compare some test points with `evaluateAt()`.

Man, I 💕 desmos.

---

<div class="post-metadata">

### Author: ![Alicia\_Clark](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/alicia_clark/32/2064_2.png) [@Alicia\_Clark](https://cl.desmos.com/u/Alicia_Clark)
#### Post date: [February 26, 2021, 12:52am UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/5 "2021-02-26T00:52:08Z")

</div>

Thank you! I got it! I don’t have much of an idea of what I’m doing but every time I try I learn a little more! Thankful for this community of people who can help in a pinch!

---

<div class="post-metadata">

### Author: ![Burton\_Shields](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/burton_shields/32/842_2.png) [@Burton\_Shields](https://cl.desmos.com/u/Burton_Shields)
#### Post date: [March 8, 2021, 11:39pm UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/6 "2021-03-08T23:39:02Z")

</div>

Thanks for this thread. I am using it in an activity for my Alg 2 class. I have it working except that as soon as I start typing the msg “Please Try again” pops up. Once I have the correct answer the msg then changes to “Yes, you got it.” How do I get the screen to wait until I am done typing the answer before giving the feedback? Thanks Burton

---

<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 9, 2021, 2:57am UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/7 "2021-03-09T02:57:35Z")

</div>

For inputs:

```auto
content: when not(input.submitted) ""
         when correctCondition "Correct"
        otherwise "Incorrect"

```

For table cells:

```auto
when isBlank(table.cellContent(1,2)) or cellHasFocus(table.cellContent(1,2)) ""
when correctCondition "Correct!"
otherwise "Incorrect"

```

There are other ways, but I like these

---

<div class="post-metadata">

### Author: ![Burton\_Shields](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/burton_shields/32/842_2.png) [@Burton\_Shields](https://cl.desmos.com/u/Burton_Shields)
#### Post date: [March 9, 2021, 4:59am UTC](https://cl.desmos.com/t/student-feedback-on-slide/2766/8 "2021-03-09T04:59:20Z")

</div>

Got it to work. Thank you. B
