title: Returning Null or Nothing from VBScript function?
body: <p>I'm trying to write the VBScript equivalent of a function similar to what's below:</p>
  
  <pre><code>object getObject(str)
  {
      if ( ... )
      {
          return object_goes_here;
      }
  
      return null;
  }
  </code></pre>
  
  <p>My guess would be below, except that I'm not understanding the difference between Nothing and Null.  As a caller, I'd rather test if the return value is set by using <code>IsNull()</code> versus <code>X Is Nothing</code>.</p>
  
  <pre><code>Function getObject(str)
      If ... Then
          Set getObject = object_goes_here
          Exit Function
      End If
  
      Set getObject = Nothing  // &lt;-- or should this be Null?
  End Function
  </code></pre>