whether=if : i asked him if/whether he would come.
let's go and find out if/whether the museum is open.
whether can't replace if in conditional sentences: if it rains tomorrow, i'll stay at home.
if i had money, i'd buy a car.
if doesn't replace whether: i'll do it whether you agree or refuse.
i haven't decided whether to go or not.