A molecular logic gate for the highly selective recognition of pyrophosphate with a hypocrellin A-Zn(II) complex.