# Compare number in list

**URL:** <https://community.thunkable.com/t/compare-number-in-list/1467122>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, question\
**Created:** [August 24, 2021, 4:39pm UTC](https://community.thunkable.com/t/compare-number-in-list/1467122 "2021-08-24T16:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 24, 2021, 4:59pm UTC](https://community.thunkable.com/t/compare-number-in-list/1467122/3 "2021-08-24T16:59:21Z")

</div>

I think you want to use the `does list contain` block:

> **[Lists](https://docs.thunkable.com/lists#does-list-contains-item)**

But you also need to know that you can’t directly compare a text string to a number. For example, “40” does not equal 40. You need to convert one of them. One way to do this is to [add zero](https://community.thunkable.com/t/convert-text-input-to-int-how-to-make-numeric-input-that-can-be-used-for-math/921118/2) (0) to the text string. That converts it to a number and then you can directly compare that value to another number.

---

_[View the full topic](https://community.thunkable.com/t/compare-number-in-list/1467122)._
