feat(cond): add condition function