Based on the weakly coupled-mode theory, the coupled-mode equations of the spatial multiwaveguide system are presented in general. The intensity distribution in each waveguide is determined by numerical method. Optical logic devices based on spatial multiwaveguide system are proposed. The analysis r