All optical switches have important significance in photon computation. In this paper, interactions among three solitons are investigated analytically. Optical switches are presented through soliton interactions. The influences of various parameters on their turning on and off functions are analyzed. Results are also useful for the design of all optical logic gates.