# \[Solved\] When Image (Attachement) not present in Airtable, thunkable code fails

**URL:** <https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133>\
**Category:** Questions about Thunkable X\
**Created:** [January 3, 2021, 5:44pm UTC](https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133 "2021-01-03T17:44:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leena.ranexargq](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leena.ranexargq](https://community.thunkable.com/u/leena.ranexargq)\
**Post date:** [January 3, 2021, 5:44pm UTC](https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133/1 "2021-01-03T17:44:13Z")

</div>

![Untitled](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/37af5820fd789313d9ae87107ee3c87031825505.png)

When Image (Attachement) not present in Airtable, thunkable code fails. When I tried to show value of that column in label, it says undefined. Plz help

I tried

 ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a32f8bccbdd94824156b831cf8052e47a87694a.png)  
But still code fails.

I also tried comparing with != “undefined”, that also did not work

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 3, 2021, 6:05pm UTC](https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133/2 "2021-01-03T18:05:05Z")

</div>

The [is empty] is used to check if the whole list is empty. You want to check for a specific entry in the list so use [in list … get #1] != null

---

<div class="post-metadata">

**Author:** ![leena.ranexargq](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leena.ranexargq](https://community.thunkable.com/u/leena.ranexargq)\
**Post date:** [January 3, 2021, 7:04pm UTC](https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133/3 "2021-01-03T19:04:36Z")

</div>

Thanks a lot for replying  
I am still confused.

![works](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/439b4b6bc59bc49cbb4f40547ac9bf0477fdcb86.png) prints undefined on screen (Image\_Qn is name of airtable column which may or may not have image attachment)

 ![Does not work](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a9dac7e9e4f2a661d13bf8ff55da8fbf7622453.png)  
Code fails here. So I cannot use this in if condition. Kindly help

---

<div class="post-metadata">

**Author:** ![leena.ranexargq](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leena.ranexargq](https://community.thunkable.com/u/leena.ranexargq)\
**Post date:** [January 3, 2021, 7:14pm UTC](https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133/4 "2021-01-03T19:14:17Z")

</div>

I compared getProperty(Image\_Qn) != null , and that is working fine  
Thanks for repplying

---

<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, 1:31pm UTC](https://community.thunkable.com/t/solved-when-image-attachement-not-present-in-airtable-thunkable-code-fails/1042133/5 "2024-11-08T13:31:03Z")

</div>


