So I gave it a go, and it worked until... It didn't! (See: Can I conditionally execute a set of MERGEs?)
Paolo