reluctantly; because there was no choice
嵐の為私たちはやむなく家にいた。
We had to stay home because of the storm.
私はやむなくそこへ行かされた。
I was forced to go there.
私はやむなく嘘をついた。
I had no choice but to lie.
空腹のためにその少年はやむなくレジからお金を盗んだ。
Because he was hungry, the boy was forced to steal money from the cash register.
警察はやむなく窓からそのアパートに入った。
The police had no choice but to enter the apartment through a window.