Make interface elements hideable based on the value of code

Often there are input parameters in a model that are only relevant when some other parameter is set to a certain value. It would be nice to be able to high/show interface elements based on the values of code. Here is an example of a model where some interface elements change based on the value of the “Show transition states” switch.