次第で
文法の解説は英語です。
用法
A次第でB is used to express "if A changes, then B also changes based on that"
例文
我々が成功できるかどうかは君次第だ
It is up to you whether we can succeed or not
花火大会は天気次第で中止になる場合もあります
The fireworks festival may be cancelled depending on the weather