title: comparing nullable(of boolean)
body: <p>I'm trying to compare two variables of type <code>nullable(of boolean)</code> in VB.NET 2010. One of the variables has a value False and the other is Nothing. Now I was expecting the following expression to evaluate to true, but this is not the case:</p>
  
  <pre><code>Dim var1 as nullable(of boolean) = False
  Dim var2 as nullable(of boolean)
  var2 = Nothing
  
  If var1 &lt;&gt; var2 Then
   msgbox "they are different"
  End If
  </code></pre>
  
  <p>Why don't I see my MsgBox? How should I compare two nullables (of boolean)?</p>