Creating Variable Variable Names?

Please specify version and format if asking for help, or apply optional tags above:
Twine Version: 2.3.9
Story Format: Harlowe

I’ve been trying to figure out a way to use a variable like this —
(if: $“Polity_Voting”_TraitScore)
— where Polity_Voting can be anything from Polity_01 to Polity_99, but haven’t been able to successfully do this in the ways that I’ve tried. Does anyone know if this is doable on Harlowe?

Some languages let you “nest” variable references, e.g. $$foo would access the variable whose name was in $foo. I didn’t spot any evidence that Harlowe supports such a syntax, but it couldn’t hurt to try.

Otherwise, you will probably want to look at using an array or datamap instead of separate variables.