こととしだいで
Meanings
Expression
1. if things permit; under certain circumstances
Composed of
thing; matter; incident; occurrence; circumstances; situation; work
depending on; as soon as; immediately after; as (e.g. "as one is told", "as one wishes"); whatever (e.g. "whatever is at hand"); order; program