según el caso

listen to the pronunciation of según el caso
Испанский Язык - Английский Язык
as the case may be
according to the circumstances, based on the situation