uses of "if" and "whether"

Hi,

Could you please explain with example where to use “if” and where to use “whether” ?

Thank you in advance!

english-test.net/forum/ftopic26564.html
english-test.net/forum/ftopic31447.html
english-test.net/forum/ftopic24181.html

Thank you!

It’s really helpful.