# Variable with a variable in it

**URL:** <https://forum.kirupa.com/t/variable-with-a-variable-in-it/220268>\
**Category:** Uncategorized\
**Created:** [March 24, 2007, 1:58pm UTC](https://forum.kirupa.com/t/variable-with-a-variable-in-it/220268 "2007-03-24T13:58:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhelle](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@Jhelle](https://forum.kirupa.com/u/Jhelle)\
**Post date:** [March 24, 2007, 1:58pm UTC](https://forum.kirupa.com/t/variable-with-a-variable-in-it/220268/1 "2007-03-24T13:58:54Z")

</div>

Hey all , I have a problem and so far I haven’t been able to solve it myself or with the help of teh internet, so I am asking you for help 🙂

the problem is that I have this variable (the \* is a number, \_root.mob doesn’t really excist)

\_root.mob\*

and I have another one

\_root.mobnumber

so what I want is that the name of the \_root.mob\* gets changed for example

\_root.mobnumber = 13;  
\_root.mob(\_root.mobnumber) = 1;

and as a result it will be \_root.mob13 = 1;

I know this isn’t the right code but I have tried it in so many ways now and im getting confused and stuff, im pretty sure its not hard to solve for you guys 🙂

Thanks in advance
