|
Hazram Wanderer
Joined: 24 May 2005 Posts: 71
|
Posted: Wed Aug 10, 2011 7:48 am
Execute a path via indirect reference |
I'd like to execute a path, via script, whose name is stored in a variable. So /Vars/myPath = "homeToArena", and homeToArena is a path. However, at run time I don't know what path name is stored in @myPath. I was hoping .{myPath} would work, but no dice. I don't see any function or command to execute a path, aside from the dot-notation.
Can this be done? |
|
|
|
orphean Apprentice
Joined: 21 Oct 2008 Posts: 147 Location: Olympia, WA
|
Posted: Wed Aug 10, 2011 8:51 am |
You can use #EXECUTE for stuff like this. It will expand any variables and then run the commands normally.
Code: |
#execute {.@myPath} |
|
|
|
|
Hazram Wanderer
Joined: 24 May 2005 Posts: 71
|
Posted: Wed Aug 10, 2011 11:14 pm |
Thanks much.
|
|
|
|
|
|