expression
depending on how ...; depending on the way ...
Attaches to the -masu stem of a verb to express that the outcome varies according to the manner of doing something.
やりようによっては、もっと早く終わるかもしれない。
Depending on how you do it, it might finish sooner.
考えようによっては、この状況も悪くない。
Depending on how you look at it, this situation isn't so bad either.