title: checking if a nullable bool is null or not
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/676078/which-is-preferred-nullable-hasvalue-or-nullable-null">Which is preferred: Nullable&lt;&gt;.HasValue or Nullable&lt;&gt; == null?</a>  </p>
  </blockquote>
  
  
  
  <p>I know questions like this have been asked many times. But I never found an answer to how to check if a nullable bool is null or not. 
  Here is an answer I have to this:</p>
  
  <pre><code>bool? nullableBool;
  if (nullableBool == true){
  
  }else if (nullableBool == false){
  
  }else{
  
  }
  </code></pre>
  
  <p>But I was wondering if there is a better and more straight to the point way in order to minimize useless codes?
  Thanks.</p>