- This topic has 3 replies, 2 voices, and was last updated 15 years, 9 months ago by .
-
Topic
-
I am trying to get the value of a variable who’s name is in another variable. As in I have the results of [info global] in a list and I want to get access to the global variables values where the name of the variables is in the list. foreach {i} [lsort [info global]] {
echo $i is $$i
}
Only $$i does not return the value of the variable it returns the name of the variable with a $ in front of it.
I have tried every combo of “” and {} i could think of to get it to work to no avail.
This should be simple but can not find it anywhere.
Thanks in advance.
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.