I recently did some investigation into resolving nested variables — that is, variables whose names are built using two or more variables. After playing around a bit, I discovered that the :RESOLVE command can be used to resolve such variables, and that each :RESOLVE command performs two rounds of variable resolution.
I summarized my findings in the new document Variables in the Automation Engine. (It’s near the end.)