Long explanation:
The phrase のいかんによっては (no ikan ni yotte wa) is used to express the concept of 'depending on the matter or situation'. It is used to indicate that the outcome may change based on the condition or quality of the noun (matter) in question.