How do I call the configuration name in a simple equation?

My configuration names are integers and I would like to create equations in my dimensions that are related to the configuration names.

SolidworksParts And Features