depending on the circumstances; if the situation calls for it
A set phrase used to indicate that an action or outcome may change based on how things develop. Often implies a conditional or potential response.
Depending on how things go, I intend to report it to the police.
If the situation requires it, we may cancel the contract.