Author Topic: How can I know if a variable is defined  (Read 2700 times)

mpiaser

  • Newbie
  • *
  • Posts: 26
How can I know if a variable is defined
« on: August 04, 2013, 01:10:34 pm »
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

  • Sr. Member
  • ****
  • Posts: 317
Re: How can I know if a variable is defined
« Reply #1 on: August 04, 2013, 03:44:29 pm »
IF IsDefined(myVar) THEN Message("The variable","is defined...")