Better input switch

Hi,

I’m trying to figure out if there is a better way to use a switch that disables the non selected inputs.

I basically got it working like this, but there must be a better way

thanks

PeakSpread (Spreads)
Unzip (Value)