# Checking \<,\> or =

**URL:** <https://cl.desmos.com/t/checking-or/4539>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [November 5, 2022, 11:53am UTC](https://cl.desmos.com/t/checking-or/4539 "2022-11-05T11:53:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarnold](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@tarnold](https://cl.desmos.com/u/tarnold)\
**Post date:** [November 5, 2022, 11:53am UTC](https://cl.desmos.com/t/checking-or/4539/1 "2022-11-05T11:53:35Z")

</div>

Hi

I am trying to write code to check on the correctness of a student input when they are given two numbers and have to choose the correct sign: \<,\> or =

The answer is in QAtable, I just can’t get it to mark it correct when they input the correct option.

```auto
disableEvaluation:true

check14=when ans14.latex=QAtable.cellContent(14,2) 1 otherwise 0

correct: check14=1

```

---

<div class="post-metadata">

**Author:** ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)\
**Post date:** [November 5, 2022, 7:45pm UTC](https://cl.desmos.com/t/checking-or/4539/2 "2022-11-05T19:45:32Z")

</div>

I don’t know why specifically it won’t match - perhaps an issue with parsing incomplete latex - but if students are just entering one of three options, you are better off using a multiple choice component.

---

<div class="post-metadata">

**Author:** ![Richard\_Bodde](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/richard_bodde/32/2991_2.png) [@Richard\_Bodde](https://cl.desmos.com/u/Richard_Bodde)\
**Post date:** [November 7, 2022, 12:27am UTC](https://cl.desmos.com/t/checking-or/4539/3 "2022-11-07T00:27:06Z")

</div>

I’m not sure exactly what the rest of your code for this question looks like but here is an activity I put together having students compare integers using \>, \< or =. Maybe you can find a page that might be useful for you to copy or find the answer to your question.

> **[Unit 5: Lesson 3- Comparing Integers • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6365af0bf9a37a95bd621e74?collections=62a5f112c035398cc1949786,62fd90cc1676fb06053a184d)**
>
> by Richard Bodde

---

<div class="post-metadata">

**Author:** ![tarnold](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@tarnold](https://cl.desmos.com/u/tarnold)\
**Post date:** [November 7, 2022, 9:54am UTC](https://cl.desmos.com/t/checking-or/4539/4 "2022-11-07T09:54:35Z")

</div>

Yeah, I thought of using a multiple choice component but was just interested in why matching latex wouldn’t work?

Also I’m developing this activity so other teachers in my department who don’t code can just copy and paste questions and answers into one slide and thus its reuseable with no intervention from me.

---

<div class="post-metadata">

**Author:** ![tarnold](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@tarnold](https://cl.desmos.com/u/tarnold)\
**Post date:** [November 7, 2022, 10:03am UTC](https://cl.desmos.com/t/checking-or/4539/5 "2022-11-07T10:03:11Z")

</div>

If I write the question as :  
Complete 0.13 l……350 ml ( insert \< = or \>)

then use latex matching to match it to:

0.13l\<350ml

it works,  
rather than just picking the correct inequality
