比較if only與only if

only if表示"只有";if only則表示"如果……就好了"。if only也可用於陳述語氣。
i wake up only if the alarm clock rings. 只有鬧鐘響了,我才會醒。
if only the alarm clock had rung. 當時鬧鐘響了,就好了。
if only he comes early. 但願他早點回來。