次第で

Usage

A次第でB is used to express "if A changes, then B also changes based on that"

Examples

我々が成功できるかどうかは君次第だ It is up to you whether we can succeed or not
花火大会は天気次第で中止になる場合もあります The fireworks festival may be cancelled depending on the weather