# How to parse a list and retrieve items the contain a specific property?

**URL:** <https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, lists, listview, help, advanced\
**Created:** [October 13, 2021, 6:48am UTC](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231 "2021-10-13T06:48:32Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [October 14, 2021, 4:30am UTC](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231/21 "2021-10-14T04:30:04Z")

</div>

Yes, this is exactly the problem and therefore I suggested that you either use two synched list or list of objects to make it consistent.

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [October 14, 2021, 4:31am UTC](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231/22 "2021-10-14T04:31:22Z")

</div>

I think I have solved it using the ‘get substring’ block as shown above. Thanks for all your help! 🙂

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [October 14, 2021, 5:27am UTC](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231/23 "2021-10-14T05:27:34Z")

</div>

@tatiang @muneer

Sorry, whilst testing I have run into another problem. When the user clicks a subject on the timetable, a list of assignments are indeed shown. However, it will show all assignments, not just the ones associated with that subject. I am not sure what the problem is as the code below contains a condition to return true if the ‘selected subject’ variable is contained within j (the assignment). Why would it be returning true if it is not contained in the assignment?

 ![Screen Shot 2564-10-14 at 12.27.02](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/5/950860953148d7c27fefbabbda72b8055db6dc24.png)

---

<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:** [October 14, 2021, 5:54am UTC](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231/24 "2021-10-14T05:54:18Z")

</div>

The way to debug a loop is to display a key value in a label and use a wait block to slow things down. So you might do something like `set debug label's text to j` and then `wait 1 second`. That way, you can watch the loop iterate and see what values are coming up. If 1 second is too short or too long, you can adjust (using integer or decimal values).

If you do that, are the values for `j` what you expect them to be?

A different way to do the same thing is to convert `app variable assignments` to text. You can convert it by using the `make text from list` block and then assign that to a label. Is that value what you expect it to be?

---

<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:14pm UTC](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231/25 "2024-11-08T13:14:53Z")

</div>



[Previous page](https://community.thunkable.com/t/how-to-parse-a-list-and-retrieve-items-the-contain-a-specific-property/1559231.md?page=1)
