# Coordinate assessment for correctness

**URL:** <https://cl.desmos.com/t/coordinate-assessment-for-correctness/1191>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [July 3, 2020, 12:37pm UTC](https://cl.desmos.com/t/coordinate-assessment-for-correctness/1191 "2020-07-03T12:37:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micah\_Baldree](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/micah_baldree/32/387_2.png) [@Micah\_Baldree](https://cl.desmos.com/u/Micah_Baldree)\
**Post date:** [July 3, 2020, 12:37pm UTC](https://cl.desmos.com/t/coordinate-assessment-for-correctness/1191/1 "2020-07-03T12:37:14Z")

</div>

I was thinking of ways to check for correctness for inputted coordinates. One way was just assigning a solution to be equal to the written out coordinate

[solution1=“(2,3)”]

but this opens the door for having to write out the solution different ways in case someone wrote a space. I was thinking of trying it this way:

i=input3.latex  
correct= when countNumberUsage(i)=2 and countNumberUsage(i,2)=1 and countNumberUsage(i,3)=1 “yes” otherwise “no”

content: "write the coordinate (2,3)

${correct}"

and this way works great, but they can write the coordinate backwards and still get it correct. Any suggestions?

---

<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:** [July 3, 2020, 5:00pm UTC](https://cl.desmos.com/t/coordinate-assessment-for-correctness/1191/2 "2020-07-03T17:00:24Z")

</div>

Try using parseOrderedPair.

```auto
i=input3.latex
correct = when parseOrderedPair(i).x = 2 and parseOrderedPair(i).y=3 "yes"
          otherwise "no"

```
