# Adding variables for input txt

**URL:** <https://community.thunkable.com/t/adding-variables-for-input-txt/15271>\
**Category:** Questions about Thunkable X\
**Created:** [January 24, 2018, 8:21pm UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271 "2018-01-24T20:21:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cliff\_Guay](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@Cliff\_Guay](https://community.thunkable.com/u/Cliff_Guay)\
**Post date:** [January 24, 2018, 8:21pm UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271/1 "2018-01-24T20:21:12Z")

</div>

I have tried adding two variables from text input using the round work around and for some reason it doesn’t work. Does anyone know of any other work arounds?

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [January 25, 2018, 12:00am UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271/2 "2018-01-25T00:00:43Z")

</div>

Cliff,

The workaround of setting variables from the text inputs and then using the variables as numbers is what I usually suggest and it appears that that is what you are doing. Can you create a small example of what is failing and share a screen shot of the blocks?

Thanks in advance.

-Mark

---

<div class="post-metadata">

**Author:** ![Cliff\_Guay](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@Cliff\_Guay](https://community.thunkable.com/u/Cliff_Guay)\
**Post date:** [January 25, 2018, 2:23pm UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271/3 "2018-01-25T14:23:27Z")

</div>

Thanks for the quick reply Mark Here is one of my senarios simple password protection:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/0/03fceea120098476ed1d0b309bb59311f97c3908.png)

The comparison of “=” or “not =” to 1021 does not work and always defaults to “not =” loop no even when the input txt is 1021.

I also have similar issues with lists made from numeric txt entered from txt input and trying to add them with results showin “NaN”

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/6/6343b5ee83573dbe6927df441551391676bfd736.png)

Regards,  
Cliff

---

<div class="post-metadata">

**Author:** ![Cliff\_Guay](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@Cliff\_Guay](https://community.thunkable.com/u/Cliff_Guay)\
**Post date:** [January 26, 2018, 5:42pm UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271/4 "2018-01-26T17:42:32Z")

</div>

I figured it out. The list i was creating had comma seperations. those commas were causing issues. instead I used text list with the round and it worked

Cheers!

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [January 30, 2018, 10:32pm UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271/5 "2018-01-30T22:32:44Z")

</div>

Yay!

-Mark

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:04pm UTC](https://community.thunkable.com/t/adding-variables-for-input-txt/15271/6 "2024-11-08T12:04:33Z")

</div>


