Whether Vs If. Use if when you have a conditional sentence. We prefer whether with or when there is more than one alternative in the indirect question.
Remember if is used when the sentence is conditional. Sometimes such usage can pass but sometimes whether is the only choice. On the other hand the word whether is used in the case of doubt.
What is the difference between if and whether.
Remember if is used when the sentence is conditional. The formal rule is to use if when you have a conditional sentence and whether when you are showing that two alternatives are possible. Remember if is used when the sentence is conditional. Some examples will make this more clear.