# A message need to be shown based on certain criteria. What am.i doing wrong?

**URL:** <https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349>\
**Category:** Questions about Thunkable X\
**Created:** [September 9, 2024, 2:46am UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349 "2024-09-09T02:46:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswinchandrasekharan](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aswinchandrasekharan](https://community.thunkable.com/u/aswinchandrasekharan)\
**Post date:** [September 9, 2024, 2:46am UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349/1 "2024-09-09T02:46:27Z")

</div>

Hi all, A message need to be shown based on certain criteria. What am i doing wrong? Can someone help me. Currently it doesnt show.

 ![Screenshot_20240909_104444_Chrome](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/0/70fb2029179d05edc4896daf1d42c58799932790.jpeg)

---

<div class="post-metadata">

**Author:** ![aswinchandrasekharan](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aswinchandrasekharan](https://community.thunkable.com/u/aswinchandrasekharan)\
**Post date:** [September 11, 2024, 1:16am UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349/2 "2024-09-11T01:16:43Z")

</div>

Hi can anyone please look through the above and guide me…?

---

<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:** [September 11, 2024, 11:34am UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349/3 "2024-09-11T11:34:47Z")

</div>

Hello @aswinchandrasekharan  
Thank you for sharing a screenshot of your blocks  
It seems that you are trying to check if a list “typelist” is equal to a text which is not possible.  
Could you please use text blocks inside the condition?  
For example:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/99eaa59075e122bec70a59e93dfce964b052a851.png)

Or  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7edb5668f42e9b2666154546827e9bb0933e66f1.png)

---

<div class="post-metadata">

**Author:** ![aswinchandrasekharan](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aswinchandrasekharan](https://community.thunkable.com/u/aswinchandrasekharan)\
**Post date:** [September 13, 2024, 10:20am UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349/4 "2024-09-13T10:20:14Z")

</div>

hi the condition is  
if the typelist selection made out of the list was A350.  
and  
if the fuel after value calculated by the app is between certain number  
and  
if the decrepancy text calculated by the app is \> certain number  
then the warning message visibility is true  
if the conditions do not meet then it is false.

typelist is a list  
fuel after and discrepancy are labels  
when i enter a set of values into a bunch of textboxes the app calculates fuel after, discrepancy and a few more. im trying to put a warning message to be displayed if certain conditions are met when the calculations are shown.

so far the item causing it to not display is the marked condition. rest are working.

 ![Screenshot_20240909_104444_Chrome1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/39ccf75d4f09093e0ad138ae7a8b64a6eaf0fda6.jpeg)

---

<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:** [September 13, 2024, 2:30pm UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349/5 "2024-09-13T14:30:55Z")

</div>

Add the list block to the left of the “A350” text block. You need to compare lists to lists because the green `text items` block is a list so the right side of the equation needs to be a list as well. You’ll make the text block into a list with one item.

**A better way to code this** is to assign a variable to the `item` block of the `Item Click` event block below and then use that variable in all of your conditional “if” blocks instead of using the `text items` block. Then you can compare text strings to text strings.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/9/a9d202a05e06ab8e3cac97a81755dadeeb0cf294.png)

---

<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:** [December 12, 2024, 2:30pm UTC](https://community.thunkable.com/t/a-message-need-to-be-shown-based-on-certain-criteria-what-am-i-doing-wrong/3187349/6 "2024-12-12T14:30:55Z")

</div>

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