title: VB6 Variant type
body: <p>I come from an Object Oriented background.  Why does "Test" (notice the quotes) display (in the message box) in this code fragment. I would expect the logical test: 'If Test = "True"' to return False because the variant contains a Boolean and not a String.  Therefore I would not expect the Message Box to appear, but it does:</p>
  
  <pre><code>Dim Test As Variant
  
  Test = True
  
  If Test = "True" Then //line 5
      MsgBox ("Test")
  End If
  </code></pre>