How can I use a variable to define other variables ?

Thanks for your idea, which I am sure will work. However I am trying to avoid having to maintain several such "switch"es using the same list of the 4 literals. The 4 will be growing to 8 to 10 so that solution will require me to maintain all 8 to 10 of the switches frequently. The list really needs to be driven by a single list of all 8 to 10 items.

I am thinking now that creating my own JSON object filtering on the item I am looking for might be the way to go. I have not explored the concept of using “return” but that might be another approach. Any thoughts on using either?