Implement `cond`.