title: Check an empty string
body: <p>I am trying to check if a variant is empty in a lotusscript agent as it is part of the logic condition but when I attempt to run an error states</p>
  
  <blockquote>
    <p>Object variable not set</p>
  </blockquote>
  
  <p>about the line of code below:</p>
  
  <pre><code>If CStr(contractId(0)) &lt;&gt; "" Then
  </code></pre>
  
  <p>I have tried</p>
  
  <pre><code>If IsNull(CStr(contractId(0))) Then
  </code></pre>
  
  <p>But that does not work either.  Why won't this work?</p>