# Nested List "Insert/ Remove" Behave abnormally

**URL:** <https://community.thunkable.com/t/nested-list-insert-remove-behave-abnormally/2369870>\
**Category:** Issues / Bugs\
**Created:** [April 13, 2023, 4:36am UTC](https://community.thunkable.com/t/nested-list-insert-remove-behave-abnormally/2369870 "2023-04-13T04:36:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentking700](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/vincentking700/32/106716_2.png) [@vincentking700](https://community.thunkable.com/u/vincentking700)\
**Post date:** [April 13, 2023, 4:36am UTC](https://community.thunkable.com/t/nested-list-insert-remove-behave-abnormally/2369870/1 "2023-04-13T04:36:32Z")

</div>

Recently I have been developing a huge project that involves using array-ish data. However, since thunkable do not offer class or array, the only workaround is to store each “field” as a separate variable.

Additionally, as my data is a four-layer structure (for i.e. Type-Trait-Where-Candidate, “The Popularity, among white people, Texas, Ted Cruz”), I manage to find out that thunkable can support multi-layer list, so that in each # of list, aside from number or texts, a “list” can be stored as well.

Reading data has no problem for me, but today I find out that:

1. When I’m removing or inserting data from the third layer or further, the list cannot delete that specific point, but rather proceed to delete everything behind it.

To visualize, when I try to modify “The Popularity, among white people” and I refer # 35, which is Texas, the list instead deletes everything behind Texas (#36-50).

I have checked the whole app (it is 6000+blocks now) and there seems not to be an issue of:

1. async block causing reference number to fluctuate
2. any loop that may have caused the reference number to fluctuate

So I made and experiment, attempting to make a label show a “list in list”:  
In normal case, a “number” will be shown as: 36  
a list as : {23, 14, 14, 36}  
but when it comes to 2 dimensional list, it appears that because thunkable uses the same spilter for first layer and second layer (that is: 23, 14, 14, 36, 23, 14, 14, 36), so the latter half of list, which is supposed to be the #2 of the top layer, is now considered part of a “fake eight component list”. So, when I reference to delete #1 of top layer, it treats the numbers behind it as part of #1 instead of a separate #2.

I know this is a rather abstract post and thunkable isn’t ultilized for nested variable. However, since a fix is fairly easy to picture for me (assign different default spilter for each layer), I am kindly asking anyone whom may concern to look into this matter. 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:** [April 13, 2023, 3:08pm UTC](https://community.thunkable.com/t/nested-list-insert-remove-behave-abnormally/2369870/2 "2023-04-13T15:08:52Z")

</div>

It’s almost impossible to troubleshoot a problem without seeing your blocks.

You’ve provided a lot of detail which is great but we have no idea how you’ve actually set things up.

---

<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:** [April 13, 2023, 4:35pm UTC](https://community.thunkable.com/t/nested-list-insert-remove-behave-abnormally/2369870/3 "2023-04-13T16:35:49Z")

</div>

@vincentking700 Could you please explain what you are trying to find in the list?  
For example here is a list that has inside of it some other lists and using these blocks, I get the max that is 6

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

---

<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:33pm UTC](https://community.thunkable.com/t/nested-list-insert-remove-behave-abnormally/2369870/4 "2024-11-08T13:33:57Z")

</div>


