When evaluating variables that are created at the command prompt, an "IF" statement will returned a value of true if the variable is undefined (has a value of unknown or 0).

Here is some simple test code I used;
IF ($Prompt = "Yes")
? $Prompt" = Yes" ?
ELSE
? $Prompt" <> Yes" ?
ENDIF

If you run this code and forget to add the variable declaration on the command line the "IF" statement will evaluate to true. Does anyone have an idea about how to check for an undefined variable?