# Note and Input cooperation?

**URL:** <https://cl.desmos.com/t/note-and-input-cooperation/2238>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [December 17, 2020, 7:08pm UTC](https://cl.desmos.com/t/note-and-input-cooperation/2238 "2020-12-17T19:08:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charlie\_Cannon](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charlie_cannon/32/1708_2.png) [@Charlie\_Cannon](https://cl.desmos.com/u/Charlie_Cannon)\
**Post date:** [December 17, 2020, 7:08pm UTC](https://cl.desmos.com/t/note-and-input-cooperation/2238/1 "2020-12-17T19:08:50Z")

</div>

> **[Segment Addition • Activity by Charlie Cannon](https://classroom.amplify.com/activity/5fd0d5dcd3ec130cf452a191)**
>
> An activity to explore Segments and Angles.

It’s me again. I appreciate your patience as I learn this language and software. I love it…even when it is frustrating me, like now. 🙂

On Screen 16 of the above posted activity, I have it set to provide a random number to the student. They then have to simply write that number in the input. I want it to be marked as correct when they do this. My challenge is I cannot put the “correct” check in the note. And I cannot figure out how to reference the random number and compare it to thier input when they press submit. You can see the code that I have tried there.

I think part of my challenge is knowing how to use the "history’ function as well as calling out variables from different components. I hope that makes sense.

---

<div class="post-metadata">

**Author:** ![James](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/james/32/1698_2.png) [@James](https://cl.desmos.com/u/James)\
**Post date:** [December 17, 2020, 8:15pm UTC](https://cl.desmos.com/t/note-and-input-cooperation/2238/2 "2020-12-17T20:15:22Z")

</div>

You can use this in the CL

correct: input16.numericValue=note16.script.A\_be

however, you will need to turn off the student’s explanation if you want a check to show on the summary screen.

---

<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:** [December 17, 2020, 8:16pm UTC](https://cl.desmos.com/t/note-and-input-cooperation/2238/3 "2020-12-17T20:16:49Z")

</div>

I’m going to look at your activity, but… “`history`” is a list of all the values from a button “`capture`”. You can use “`lastValue`” to get the most recent.

I like to do all checking inside inputs, tables, wherever the student input is. I create a variable, “`check`” and use that for my correct sink as well as in other components. Access variables from other components generally using:  
`componentName.script.variableName `  
You may need to use `${ }` around that if you’re putting into note content, or a calculation inside “`numericValue`” for example.

---

<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:** [December 17, 2020, 8:19pm UTC](https://cl.desmos.com/t/note-and-input-cooperation/2238/4 "2020-12-17T20:19:37Z")

</div>

> [@James](#):
>
> correct: input16.numericValue=note16.script.A\_be

Correction:  
`correct: input16.numericValue=note16.script.o`

---

<div class="post-metadata">

**Author:** ![Charlie\_Cannon](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charlie_cannon/32/1708_2.png) [@Charlie\_Cannon](https://cl.desmos.com/u/Charlie_Cannon)\
**Post date:** [December 17, 2020, 9:00pm UTC](https://cl.desmos.com/t/note-and-input-cooperation/2238/5 "2020-12-17T21:00:06Z")

</div>

Thanks! I tried everything except putting script in there. It kept suggesting that and I kept rejecting it because I was not sure what it was. Ill read more on that now though.
