plot Piecewise[{{2,-2<x <2}, {x,2<= x < 3}}] x=-5 to 5