A nonlinear equation with piecewise continuous argument