Hi Gerald,
Please use the formula block which you find in the function bar with the control functions to convert your data signal into a control signal. Just insert the Name of the connected data signal coming from the switch in the field for the formula entry.
Regards,
Ralf