Get a variable by name, using other variables values

I might be misunderstanding, but to me it sounds like you are either looking for a data table (thats an asset type in blueprint) or something like a Map where you can have a key of an enum or gameplay tag with a value of a struct?