# \[Solved\] In list.....set #....as.... not working?

**URL:** <https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [March 16, 2020, 11:01pm UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628 "2020-03-16T23:01:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [March 16, 2020, 11:01pm UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/1 "2020-03-16T23:01:13Z")

</div>

![list_set](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fef7204ea8a9e1aea0d9d1526b9f6bedf5e97eee.png)  
Has anyone used this block successfully? I presume it’s the right block to use if I want to replace an item in a list. It’s not working for me. Please help.  
Thanks

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 16, 2020, 11:59pm UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/2 "2020-03-16T23:59:34Z")

</div>

Hi @Patrick_Elisha - couple of questions here, firstly:

If you’re storing your list in a cloud variable, does it still look like a list when you retrieve it? Are you using any blocks to parse this data?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 17, 2020, 1:07am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/3 "2020-03-17T01:07:45Z")

</div>

Hi @Patrick_Elisha, it looks as if you are storing a list of lists? Is that correct?

---

<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:** [March 17, 2020, 4:18am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/4 "2020-03-17T04:18:12Z")

</div>

The variable j needs to be a list if you’re going to assign something to it using an “in list” block. So @domhnallohanlon’s question is key here: what does j look like by itself? Is it a list? Can you view it using a List Viewer?

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [March 17, 2020, 4:29am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/5 "2020-03-17T04:29:58Z")

</div>

![list of list](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d415bba5a811b7412829bdbcf6b4c9d139a853ff.png)  
Yes. The task is to replace the sublist item as in pic above.  
I have no problem performing other tasks with list but set seems to be an impossibility.  
Thank you.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 17, 2020, 4:32am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/6 "2020-03-17T04:32:40Z")

</div>

can you try storing them as objects?

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [March 17, 2020, 4:43am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/7 "2020-03-17T04:43:24Z")

</div>

How? Can you show me in blocks with reference to my case?  
Thank you.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 17, 2020, 4:47am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/8 "2020-03-17T04:47:32Z")

</div>

![Screen Shot 2020-03-17 at 12.32.23 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/1/a13a301e343cd8484ea59e7493332ed357479a48.png)

can you describe a little more about what you are trying to do/

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [March 17, 2020, 5:03am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/9 "2020-03-17T05:03:46Z")

</div>

If i store as object as shown, how do i get values?  
I was trying to replace(update) lat & lon in the sublist.  
Thank you.

---

<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:** [March 17, 2020, 6:37am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/10 "2020-03-17T06:37:59Z")

</div>

I’m going to go out on a limb here and say that you can’t use a for loop variable – j – this way. Although j is a list, I don’t think Thunkable can reference it the way you’re trying… by setting an item’s value when the list j is an item of the list _subscriptions_.

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [March 17, 2020, 2:39pm UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/11 "2020-03-17T14:39:48Z")

</div>

I found a way to update sublist iitem:

 ![list of list_post](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/778ad5c8e56623106df1f0b2581a532a932acc61.png)

 ![list of list_update](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/3784916132c283f0339a060af86c2aa84b0ab0e1.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 17, 2020, 3:00pm UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/12 "2020-03-17T15:00:55Z")

</div>

Nice work!

---

<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, 11:40am UTC](https://community.thunkable.com/t/solved-in-list-set-as-not-working/518628/13 "2024-11-08T11:40:22Z")

</div>


