What's the difference between "if" and "only if"?

Native speaker’s answer
Rebecca
"Only if" is used to introduce a necessary condition that allows X to happen. It means "not unless." For example, if I were to say: "Only if I pass this exam, can I get accepted into law school," it would mean that the only condition that allows me to get into law school is passing the exam. Note that when using "only if," the second part of the sentence uses inverted syntax (verb first). Ex: Only if the other party agrees can we sign the contract. Ex: Only if you wash the rice first can you reduce the starch amount. "If" is also a conditional clause, but it introduces more general possibilities. Ex: If I were a dog in my next life, I wouldn't have to work. Ex: If it rains tomorrow, I'm taking a taxi instead of walking. Furthermore, "if, and only if," is a way to add emphasis on the conditional quality of the statement that follows. Ex: If, and only if, she agrees, can we seal the deal. Ex: If, and only if, the groundhog sees its shadow, can we enjoy an early spring.