[noun] + いかんだ [noun] + いかんでは [noun] + いかんによっては
[noun] + の + いかんだ [noun] + の + いかんでは [noun] + の + いかんによっては
Note: Often preceded by nouns expressing factors/conditions (努力、結果、態度、対応 etc.). The の particle may appear between the noun and いかん.
The expressions いかんだ, いかんでは, and いかんによっては are formal/literary grammar patterns meaning "depending on", "in accordance with", or "contingent upon". They are used to express that a result, decision, or outcome hinges on a particular factor. いかん derives from the classical Japanese word meaning "how" or "in what manner" (related to いかが如何).
This pattern is used to state that something is determined by or depends on a certain factor. It typically appears at the end of a sentence as a conclusive statement.
These patterns are used mid-sentence to set up a conditional: depending on some factor, a certain outcome may follow. いかんでは and いかんによっては are largely interchangeable, though いかんによっては can feel slightly softer or more explanatory.
These expressions attach to nouns or noun + の:
Sometimes the particle の appears between the noun and いかん: