A multielectrode laser can be used to perform digital logic functions and threshold detection. In addition, the intrinsic gain in these devices allows control of lasing light output without using conventional high-current electrical switches. Device potential is illustrated by demonstrating logical and operation (demultiplexing) at 1.5 Gbit s-1 with a bit error rate of <10-11 s- 1.