How to use whether with an infinitive?
Use whether (not if) before the infinitive. Both actions have the same subject in this case.
For example, a phrase like this: We were discussing whether to go skiing this winter.
(you will be asked to create an account if you do not have one)
Learn more simple rules