# Is there an easy way to look up an array value from an "index"

**URL:** <https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [March 31, 2025, 9:48pm UTC](https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390 "2025-03-31T21:48:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clarkrichard844v51um](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@clarkrichard844v51um](https://community.thunkable.com/u/clarkrichard844v51um)\
**Post date:** [March 31, 2025, 9:48pm UTC](https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390/1 "2025-03-31T21:48:39Z")

</div>

I have programmed very complex code in Basic (yeah, Basic) for years, but want to learn Thunkable.

I have an array of 10 values, and want to look up a value based on an index variable, then change a RichText backround color based on the chosen value. ChatGPT keeps showing incorrect methods. This would be simple in Basic, but I can’t get it to work in Thunkable.

Any solution? I can’t be the first to need this.

---

<div class="post-metadata">

**Author:** ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)\
**Post date:** [April 1, 2025, 12:26am UTC](https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390/2 "2025-04-01T00:26:43Z")

</div>

You’re right. This is **literally** all I need to complete my app. 😭  
Someone help this dude quick before I lose my sanity trying to find the answer myself

---

<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 1, 2025, 2:32am UTC](https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390/3 "2025-04-01T02:32:58Z")

</div>

The project link has expired but you can use the blocks in this post to do what’s essentially a vlookup: [Performing a VLOOKUP in LocalDB - #28 by tatiang](https://community.thunkable.com/t/performing-a-vlookup-in-localdb/66057/28)

I think you can also simplify it by replacing the `in list...` block with the green `index` block.

---

<div class="post-metadata">

**Author:** ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)\
**Post date:** [April 2, 2025, 11:44pm UTC](https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390/4 "2025-04-02T23:44:48Z")

</div>

Finally completed my app. Thank you!

---

<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:** [July 1, 2025, 11:45pm UTC](https://community.thunkable.com/t/is-there-an-easy-way-to-look-up-an-array-value-from-an-index/3704390/5 "2025-07-01T23:45:01Z")

</div>

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