Can I change the value of the staticswitcparameter in the material at runtime ?

hey ! I want to change the value of the staticswitcparameter in the material at runtime by c++ or BS. Can I ?

if i cannot . the only way is to create two material instances with different value of staticswitcparameter ,then i change that at run time ?

Is there any other way?

No you cannot, hence the word static.

You could just lerp between two changed values.