While waiting for MS to add new functionality to check for undefined variables, I think this will do the work (at least with kix32 ver 3.62)

Here are some code doing various checks

code:
;$var="dummy"
$dmyvar1=$var+"x"
?" Testing undefined variable var + x (string operation):$dmyvar1."
$dmyvar2=$var+"9"
?" Testing undefined variable var + 9 (number operation):$dmyvar2."

$var="dummy"
$dmyvar3=$var+"x"
?" Testing defined variable var + x (string operation):$dmyvar3."
$dmyvar4=$var+"9"
?" Testing defined variable var + 9 (number operation):$dmyvar4."

; Check undefined variable (use the first dummy variable)
If $dmyvar1=0
?" Variable var is undefined!"
Else
?" Variable var is defined!"
EndIf


The supprice comes when you look at the output:

code:
 Testing undefined variable var + x (string operation):0.
Testing undefined variable var + 9 (number operation):9.
Testing defined variable var + x (string operation):dummyx.
Testing defined variable var + 9 (number operation):dummy9.
Variable var is undefined!

I have used the $dmyvar1 variant successfully, an hope this tip will help you as well!

Regards HF

------------------