Molecularly-imprinted polymeric logic gates selective for predetermined chemical input species.