Japanese deck
場合
noun·n4

あい

A case, situation, or circumstance; used to mean 'in the event that' or 'when'

そのあい

あいによっては