I was sure I had used this before, but my last few attempts have been
failures.

Is there a way say define the following:


Variable name varXPath = “abc”
Variable name varYPath = “def”

Variable curPath = “varYPath”

Indirect variable curPath = $varYPath= “def”

Variable curPath = “varXPath”

Indirect variable curPath = $varXPath= “abc”

This type of thing is supported in most programming languages, where the
expansion of variable name is performed first and then the actual value of
the variable referenced by the expanded name is returned.

I have tried a few things without luck. Am sure I had this working before
somehow.