|
Kosmo Newbie
Joined: 06 Oct 2014 Posts: 3 Location: United States
|
Posted: Fri Sep 06, 2019 1:11 pm
Variable Name from Variable Value |
I am having trouble defining a variable name called from another variable value.
Per the help documentation, I should be able to do
Code: |
#VA simple abc
#VA @simple def
|
To make a variable named "abc" with a value of "def".
However, when I do this in CMUD, the second line of code merely changes the "simple" variable's value to "def".
Is there some setting I have messed up, or is the documentation inaccurate on this issue? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Sep 06, 2019 2:37 pm |
I believe the documentation is inaccurate as I am getting the same results
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Kosmo Newbie
Joined: 06 Oct 2014 Posts: 3 Location: United States
|
Posted: Fri Sep 06, 2019 3:22 pm |
Any other way to name a variable using the value of another variable?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Sep 06, 2019 4:16 pm |
Run your variable call through an #EXEC, that will force the first variable to evaluate before it it is interpreted.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|