Explanation
Express that there is no other choice; 'have no choice but', 'cannot do anything but'.
Formation
Verb-dictionary form + よりほかない
Detailed explanation
The ~よりほかない grammar point is used to express that there is no other choice or alternative in a given situation. It can be translated as 'have no choice but to...', 'nothing but...', or 'cannot do anything but...'.
Examples
Shiken ga chikai node, benkyou suru yori hoka nai.
Since the exam is near, there is no choice but to study.
Kaze ga hidoi node, hayaku neru yori hoka nai.
My cold is severe, so I have no choice but to go to bed early.
Basu ga konai node, aruku yori hoka nai.
Since the bus isn't coming, I have no choice but to walk.
Okane ga nai node, yasui mono o kau yori hoka nai.
Since I have no money, I have no choice but to buy cheap things.
Practice
Grammar content sourced from hanabira.org.