Selecting map by enum variable value

Same Answer as on FB =) Make a Struct and nest your Map in it.

This seems like quite a simple problem, so I’m hoping there’s a simple solution which I’m just missing. I have a variable called “VariableNames”, which is an enum variables type, and contains the names of 10 variables which can be chosen. I also have 10 maps of strings to string, each named after one of the options in the varaiblesnames variable (and contain coordinates (keys) and relevant values (values) for each variable). What I want to do is select the corresponding variable, in such a form that it can be inputted as a target map into a find action, from whatever option is chosen in variablenames. Has anyone got any ideas?