Real parameter for spring

Hello,
I am running simulations with springs and would like to create a parameter to adjust the stiffness of the spring rapidly. When I want to create a formula to modify the stiffness depending on my parameter, the stiffness is not available (eventhough initial length is for example).
Is there a way to use a parameter for spring stiffness?
Thank you