# Simple Coding for more than one correct answer

**URL:** <https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776>\
**Category:** Questions\
**Created:** [October 27, 2021, 3:37pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776 "2021-10-27T15:37:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corey\_Watkins](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/corey_watkins/32/3120_2.png) [@Corey\_Watkins](https://cl.desmos.com/u/Corey_Watkins)\
**Post date:** [October 27, 2021, 3:37pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776/1 "2021-10-27T15:37:50Z")

</div>

Hi! I am VERY new to computational layers and have been trying to figure out a simple way to code for accepting two answers. For example, I want to accept the answer 1200 or 1,200. I have seen posts involving a lot more coding than I think I need for such a simple response. Can someone guide me, please?? 🙂

Thank you for any help!

---

<div class="post-metadata">

**Author:** ![Corey\_Watkins](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/corey_watkins/32/3120_2.png) [@Corey\_Watkins](https://cl.desmos.com/u/Corey_Watkins)\
**Post date:** [October 27, 2021, 3:38pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776/2 "2021-10-27T15:38:22Z")

</div>

And this is in a math input section

---

<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:** [October 27, 2021, 4:48pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776/3 "2021-10-27T16:48:57Z")

</div>

Looks like numericValue will work fine. Nothing special

```auto
correct: this.numericValue=1200

```

---

<div class="post-metadata">

**Author:** ![Corey\_Watkins](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/corey_watkins/32/3120_2.png) [@Corey\_Watkins](https://cl.desmos.com/u/Corey_Watkins)\
**Post date:** [October 27, 2021, 5:13pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776/4 "2021-10-27T17:13:33Z")

</div>

> [@Daniel\_Grubbs](#):
>
> `correct: this.numericValue=1200`

thank you! I had used this:

disableEvaluation: true

correct: this.submitted and numericValue(this.latex)=1200 and

countNumberUsage(this.latex, 1200)=1

submitDisabled: this.submitCount=1

and it wouldn’t allow for 1,200 but I used yours and it worked great! Thank you !!!

---

<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:** [October 27, 2021, 9:16pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776/5 "2021-10-27T21:16:07Z")

</div>

i wonder if countNumberUsage treats 1,200 as 2 values.

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [October 27, 2021, 9:17pm UTC](https://cl.desmos.com/t/simple-coding-for-more-than-one-correct-answer/3776/6 "2021-10-27T21:17:53Z")

</div>

I believe it does. I think I ran into that issue once when making an activity where the students were converting scientific notation to standard notation.
