Python: How to make a script to continue after a valid string variable is returned
<p>I got a question about a flow of definition in python:</p>

<pre><code>def testCommandA () :
  waitForResult = testCommandB ()
  if result != '' :
     print 'yay'
</code></pre>

<p>Is there any way to make waitForResult to wait for testCommandB to return something (not just an empty string)? Sometimes testCommandB will produce nothing (empty string) and I do not want to pass empty string but as soon as I got a string in waitForResult then testCommandA will continue to run. Is it possible?</p>

<p>Thanks in advance</p>
