Light-induced cargo release from a cucurbit[8]uril host by means of a sequential logic operation.