A null string is not the same as empty.

Instead of If $myvar = ''

try

? VarTypeName($myvar)

and determine if the state matches one defined in the VarTypeName results table.

You can then set up your If...Else...Endif construct.
_________________________
Home page: http://www.kixhelp.com/hb/