The word 'whether' can be used to start a clause expressing an opinion which is not quite sure. For example, 'Jackie didn't know whether she would find out the answer or not.' This means that Jackie was not sure about the possibility that she could find out the answer. And 'whether' clause can also be a subject, for example, 'Whether I'm going to leave or stay is still to be discussed.' In this sentence, 'whether i'm going to leave or stay' is the subject. [Wish this is helpful.]