Activate configurations with equations

Hello.

I am exporting a text file with variables from another program that then is used in Solidworks as dimentions. Is there a way to change active configuration by changing a variable? Let's say that I have a variable X. When X = 1 then config_A is active but if I change it to X = 2 then config_B is active. This is meant to be done in an assembly so the difference between configs is different components suppressed and unsupressed.

Appreciate the help!