# Diff between local list initialization Vs List Creation from external data

**URL:** <https://community.thunkable.com/t/diff-between-local-list-initialization-vs-list-creation-from-external-data/2256176>\
**Category:** Questions about Thunkable X\
**Created:** [February 3, 2023, 6:11am UTC](https://community.thunkable.com/t/diff-between-local-list-initialization-vs-list-creation-from-external-data/2256176 "2023-02-03T06:11:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)\
**Post date:** [February 3, 2023, 6:11am UTC](https://community.thunkable.com/t/diff-between-local-list-initialization-vs-list-creation-from-external-data/2256176/1 "2023-02-03T06:11:18Z")

</div>

When I create a list locally using a Variable and then remove its first element it works fine. However when I create a list based on user input then when I remove the first element it removes all elements except the last one. However the remove works for all other indices 2, 3 … including Last. First or #1 has issues. So there must be subtle diff between the two lists. Mine or Thunkable bug. Kindly clarify. Please note I am using the same data for both inputs for consistent error duplication. The data is totally random and the occurrence of any element is random.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/d/ad18e5945e6643b6c69b962d6b8484c641a83e21.png)  
[https://x.thunkable.com/copy/08f41a78a5b83460074d0432d1fab1ee](https://x.thunkable.com/copy/08f41a78a5b83460074d0432d1fab1ee)

---

<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:** [February 3, 2023, 4:34pm UTC](https://community.thunkable.com/t/diff-between-local-list-initialization-vs-list-creation-from-external-data/2256176/2 "2023-02-03T16:34:35Z")

</div>

I can see how this _should_ work since it defines a list with two items, one being the new item, but it doesn’t for some reason:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/5424dcc8bbf7ee96e85b609cf6d232c2d335a7a0.png)

You should use this block instead:

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

---

<div class="post-metadata">

**Author:** ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)\
**Post date:** [February 3, 2023, 4:54pm UTC](https://community.thunkable.com/t/diff-between-local-list-initialization-vs-list-creation-from-external-data/2256176/3 "2023-02-03T16:54:31Z")

</div>

Yes!! I much suffer from C++ syndrome. Converting from code to codeless thinking is very tough that too when you are not in your prime 🙂 age . Thanks Tatiang you not only gave me a solution but a different mode of thinking!!

Your answer helped remove extra blocks now it is compact and unambiguous.  
[https://x.thunkable.com/copy/a11d940eebe922d55e2f9cea28b8b9ed](https://x.thunkable.com/copy/a11d940eebe922d55e2f9cea28b8b9ed)  
In my real program I can eliminate tons of blocks!! 🙏

---

<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:** [May 4, 2023, 4:55pm UTC](https://community.thunkable.com/t/diff-between-local-list-initialization-vs-list-creation-from-external-data/2256176/4 "2023-05-04T16:55:24Z")

</div>

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