Fetching details from the dictionary...
if necessary; when unavoidable
万止むを得なければ計画を変更する。
If necessary, we will change the plan.
万止むを得なければその提案を受け入れる。
If necessary, we will accept that proposal.
万止むを得なければ手術を受けることにした。
I decided to undergo surgery if necessary.