- Supply the output of the previous block to the comparator input of the “Switch” block.
- Set the “Leading” option for the first input and the “Lagging” option for the third input using a “String Constant” block.
- Then, configure the comparator condition to >= 0.

- Switch Block: https://www.mathworks.com/help/simulink/slref/switch.html
- String Constant Block: https://www.mathworks.com/help/simulink/slref/stringconstant.html
- MATLAB Function Block: https://www.mathworks.com/help/simulink/slref/matlabfunction.html