So basically,

Code:
if (%x)
means "if %x exists and doesn't equal zero"

and

Code:
if (%x != $null)
means "if %x exists or equals zero"

Correct?