A GSUB Syntax, and Capability, Question

Greetings All,

Before giving up on this, I thought to check here to learn if there is any way to express substitution logic in a way similar to:

  sub A [one two three] by [X Y Z] ;

where the substitution output would be as per:

 A 1 => X
 A 2 => Y
 A 3 => Z

?

As expressed above, the syntax isn't valid.  Is there a similar expression that accomplish the intended substitution?

thanks!

Answers