# Correct sink - getting syntax error

**URL:** https://cl.desmos.com/t/correct-sink-getting-syntax-error/3282
**Category:** Questions
**Created:** [May 13, 2021, 5:12pm UTC](https://cl.desmos.com/t/correct-sink-getting-syntax-error/3282 "2021-05-13T17:12:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Pamela\_Davis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/pamela_davis/32/1890_2.png) [@Pamela\_Davis](https://cl.desmos.com/u/Pamela_Davis)
#### Post date: [May 13, 2021, 5:12pm UTC](https://cl.desmos.com/t/correct-sink-getting-syntax-error/3282/1 "2021-05-13T17:12:02Z")

</div>

I have 5 graphs that I am randomly choosing 1 and asking students to put solution in a math text. I want to set math text correct sink to check if the solution to the random graph is correct. I keep getting errors and I’m not sure what to change. This is where I am at right now:

correct: when (map = 1 and a1.latex = `(1,1)`) or  
when (map = 2 and a1.latex = `(-1,-4)`) or  
when (map = 3 and a1.latex = `(-1,-2)`) or  
when (map = 4 and a1.latex = `(-1,-1)`) or  
when (map = 5 and a1.latex = `(1,-2)`)  
otherwise “”

---

<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: [May 13, 2021, 5:24pm UTC](https://cl.desmos.com/t/correct-sink-getting-syntax-error/3282/2 "2021-05-13T17:24:20Z")

</div>

Take out all the when’s and the otherwise “”. Each set of parentheses will output true or false. So the series of or statements will either output true or false, which is what the correct sink is looking for.

If the when-otherwise just makes more sense to you, you need to have a result of true after each condition and false after the otherwise.
