We investigate a codirectional nonlinear coupler composed of two Kerr nonlinear waveguides. Unlike the conventional device, the linear coupling between the guides is supposed to be a variable function of the propagation distance. We calculate quantum statistical and dynamical properties of the Kerr nonlinear coupler with a coherent input and analyse the influence of coupling variation on oscillations in mean photon number. The possibility to control the switching characteristics and principal squeezing effect by adjusting the form of coupling function is shown.