<div class="gmail_quote">On Wed, Jun 30, 2010 at 9:13 AM, Marcel Loose <span dir="ltr"><<a href="mailto:loose@astron.nl">loose@astron.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think I could live with using an empty string and then use<br>
'if(VAR MATCHES "^$")', instead of 'if(DEFINED VAR)'.<br></blockquote><div><br>You probably know this, but in the vast majority of cases you could just use 'if(VAR)'. That will be true as long as VAR is not undefined, 0, "", N, NO, OFF, FALSE, NOTFOUND, or <variable>-NOTFOUND.<br>
<br>If you really need to only match empty string, then probably 'if(VAR STREQUAL "")' would be a little easier to read and type.<br><br>Ceej<br>aka Chris Hillery <br></div></div>