How can I know if a variable is defined

Started by mpiaser, August 04, 2013, 01:10:34 PM

Previous topic - Next topic

mpiaser

I have a subroutine that needs a variable that may not be defined.  Right now it has code:

if DebugMode=='N' then ......

The problem is if DebugMode is not defined, I want it to default to N

snowsnowsnow

IF IsDefined(myVar) THEN Message("The variable","is defined...")