Piecewise[{{-5,0<=t<1},{4,1<=t<2}}]