# \[Solved\] Comparing Strings

**URL:** <https://community.thunkable.com/t/solved-comparing-strings/2178335>\
**Category:** Questions about Thunkable X\
**Created:** [December 13, 2022, 10:43pm UTC](https://community.thunkable.com/t/solved-comparing-strings/2178335 "2022-12-13T22:43:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlalami](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@nlalami](https://community.thunkable.com/u/nlalami)\
**Post date:** [December 13, 2022, 10:43pm UTC](https://community.thunkable.com/t/solved-comparing-strings/2178335/1 "2022-12-13T22:43:30Z")

</div>

I have searched for an answer but could not find one. Is there an option or block to Compare Text. I have created an App with List Viewer and I am trying to compare the choice that the user clicks on against a specific text. If a user clicks on one of the List viewer choices, for example Canada, it will compare it to a text string and if they match, do something and if not do something else.

Thanks

---

<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:** [December 13, 2022, 10:59pm UTC](https://community.thunkable.com/t/solved-comparing-strings/2178335/2 "2022-12-13T22:59:18Z")

</div>

You would use the equals (=) block from the logic drawer to compare text strings. See this: [Logic - Thunkable Docs](https://docs.thunkable.com/logic#comparison-blocks)

You could also Google _compare text blocks Thunkable_ and there are some promising results there.

---

<div class="post-metadata">

**Author:** ![lalaminv8ge](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@lalaminv8ge](https://community.thunkable.com/u/lalaminv8ge)\
**Post date:** [December 14, 2022, 9:29pm UTC](https://community.thunkable.com/t/solved-comparing-strings/2178335/3 "2022-12-14T21:29:38Z")

</div>

Thank you, appreciate the quick response.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 14, 2023, 9:29pm UTC](https://community.thunkable.com/t/solved-comparing-strings/2178335/4 "2023-03-14T21:29:42Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
