# \[Solved\] Is it possible to use a variable value to modify a list with the same name?

**URL:** <https://community.thunkable.com/t/solved-is-it-possible-to-use-a-variable-value-to-modify-a-list-with-the-same-name/998343>\
**Category:** Questions about Thunkable X\
**Tags:** solved, variables\
**Created:** [November 25, 2020, 12:51pm UTC](https://community.thunkable.com/t/solved-is-it-possible-to-use-a-variable-value-to-modify-a-list-with-the-same-name/998343 "2020-11-25T12:51:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [November 25, 2020, 5:47pm UTC](https://community.thunkable.com/t/solved-is-it-possible-to-use-a-variable-value-to-modify-a-list-with-the-same-name/998343/2 "2020-11-25T17:47:39Z")

</div>

Yes it is possible, but I think there may be a better approah for you app.

First, how to refer to variables by their name. At the bottom of the variables section, there are some funny looking blocks that allow you to get and set variables by their name.

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

You use them like this:

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

But for hierarchial data (properties with properties, lists of list, etc.) JSON objects are the way to go. Here is one (of many ) example on how to read and create JSON hierarchies.

> [@Help me with my "Choose Your Own Adventure" app please](http://community.thunkable.com/t/help-me-with-my-choose-your-own-adventure-app-please/981085/8):
>
> Thanks for your patience! Here is the link to the remixable project: [https://x.thunkable.com/copy/742b4af32e2e1a782b0df119060665d3](https://x.thunkable.com/copy/742b4af32e2e1a782b0df119060665d3) (after 60 days it expires, so DM me if you need an updated link) Short Answer: The Bandersnatch-esque / Choose-Your-Own-Adventure style of the game maps beautifully to JSON hierarchies! The key to this app is that the map of the Game options (choices) can be transformed into a saved LIST used to access that point in the game. Long Answer: I will start with apo…

I’m all about JSON, so if you search for my name and JSON in the list, you will find a lot of examples. Many of the examples cover WebAPI calls, but they will show the techniques for looping thrrough data, checking for values, sorting, filtering, etc.

Happy Thunking!

---

_[View the full topic](https://community.thunkable.com/t/solved-is-it-possible-to-use-a-variable-value-to-modify-a-list-with-the-same-name/998343)._
