title: VB6 IIf advantage
body: <p>Is there a performance advantage to using <code>IIf</code> over <code>If</code>?</p>
  
  <p>Other than simply less code... what is the difference between :</p>
  
  <pre><code>If msInitialFloodSection &lt;&gt; Trim$(cboFloodSection.Text) Then
      mbFloodSectionChanged = True
  Else
      mbFloodSectionChanged = False
  End If
  </code></pre>
  
  <p>and   </p>
  
  <pre><code>mbFloodSectionChanged = IIf(msInitialFloodSection &lt;&gt; Trim$(cboFloodSection.Text), True, False)
  </code></pre>