Piecewise[{{x/4-1, x != 2} ,{3, x=2}}]