Based on the dual-rail logic, a cascadable parallel binary logic gate was, proposed. All 16 binary logic operations can be implemented by this gate which can be programmed by halfwave phase retard of polarization. The electrooptical effect is proposed to program the logic function in real time and the experimental results are also presented.