piecewise[{{1,0<=x<2},{2,2<=x<10}}]