[structure: see text] Modified 1-benzylisoquinoline N-oxides can operate as molecular logic gates. The combination of dual-channel fluorescence emissions and the preferred interaction for selected chemical inputs allows one to design multifunction and self-reprogrammable molecular logic gates.