I think you mean "If task d depends on either task a or task b finishing, together with task c