# Problem with list index

**URL:** https://community.thunkable.com/t/problem-with-list-index/2210886
**Category:** Questions about Thunkable X
**Created:** [January 8, 2023, 11:07am UTC](https://community.thunkable.com/t/problem-with-list-index/2210886 "2023-01-08T11:07:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![marcospin1978gl](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@marcospin1978gl](https://community.thunkable.com/u/marcospin1978gl)
#### Post date: [January 8, 2023, 11:07am UTC](https://community.thunkable.com/t/problem-with-list-index/2210886/1 "2023-01-08T11:07:25Z")

</div>

Hi all, I have this problem, when I click on label1 it writes all three values ​​of the list so “10,20,30” I would like to access only the first index so only display “10” and putting the index at 2 I would like display “20”, but it doesn’t do that!  
Can anyone kindly help me?  
Thank you.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/ca6dc478dba915ae4e19c47bc5390c348a0a57d7.png)

this is the code

---

<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: [January 8, 2023, 3:40pm UTC](https://community.thunkable.com/t/problem-with-list-index/2210886/2 "2023-01-08T15:40:34Z")

</div>

When referencing a variable, you need to use a block from the Variables drawer. Your variable is called “lista” (this is fine but list variables do not have to have the word “list” in them).

Remove the list [gear] block and the text “a” block. Replace those with an ‘app variable lista’ block from the Variables drawer.

Here’s an example from the [Lists documentation](https://docs.thunkable.com/lists#select-from-a-list):

 ![Image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/cacf39bbf08185d668458f5bddfe0b9e1e091627.png)

The documentation could definitely be clearer about how lists work. Many people make the mistake of using the list [gear] block when it’s almost never needed in a project except when initializing or setting a list variable value.

---

<div class="post-metadata">

### Author: ![marcospin1978gl](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@marcospin1978gl](https://community.thunkable.com/u/marcospin1978gl)
#### Post date: [January 8, 2023, 8:59pm UTC](https://community.thunkable.com/t/problem-with-list-index/2210886/3 "2023-01-08T20:59:24Z")

</div>

Thank you so much, now i understand!

---

<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: [April 8, 2023, 8:59pm UTC](https://community.thunkable.com/t/problem-with-list-index/2210886/4 "2023-04-08T20:59:49Z")

</div>

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