WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: mpiaser on August 04, 2013, 01:10:34 PM

Title: How can I know if a variable is defined
Post by: mpiaser 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
Title: Re: How can I know if a variable is defined
Post by: snowsnowsnow on August 04, 2013, 03:44:29 PM
IF IsDefined(myVar) THEN Message("The variable","is defined...")