Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site Shasta.ARPA Path: utzoo!linus!decvax!decwrl!glacier!Shasta!tang From: tang@Shasta.ARPA Newsgroups: net.micro.pc,net.micro Subject: Re: null as variable in batch file Message-ID: <88@Shasta.ARPA> Date: Tue, 11-Feb-86 23:34:42 EST Article-I.D.: Shasta.88 Posted: Tue Feb 11 23:34:42 1986 Date-Received: Thu, 13-Feb-86 19:36:20 EST References: <534@whuts.UUCP> Distribution: net Organization: Stanford University Lines: 14 Xref: linus net.micro.pc:6712 net.micro:12582 > foo %1 --how do I detect case where %1 is omitted, thus avoiding > an error? I've tried: > if %1=='' > if %1==' ' > if %1== > all to no avail. Any help or pointers would be appreciated. Try this, I guess it will work :-) if $%1$ == $$ ----------------------------------- -mkt