Supramolecular hydrogel exhibiting four basic logic gate functions to fine-tune substance release.