title: AndAlso/OrElse in VBA
body: <p>I'm trying to get a lazy evaluation with 'And' in my Excel macro by doing the following:</p>
  
  <pre><code>If Not myObject Is Nothing *And* myObject.test() Then
      'do something'
  Else
      'do something else'
  End If
  </code></pre>
  
  <p>I know lazy evaluation exists in VB.NET as <code>AndAlso</code> and <code>OrElse</code> but cannot find anything similar in VBA.  If lazy evaluation does not exist in VBA, what's the best way to structure the code so that it will evaluate the way I expect?</p>