🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5454

Re: null as variable in batch file

#5454
From: tang
Date: Wed, 12 Feb 1986 04:34
14 lines
933 bytes
> foo %1   --how do I detect case where %1 is omitted, thus avoiding
> 	   an error?  I've tried: 
>                        if %1==''
>                        if %1==' '
>                        if %1==<CTRL @>
>            all to no avail.  Any help or pointers would be appreciated.

Try this, I guess it will work :-)

	if $%1$ == $$

-----------------------------------

-mkt
Technical Details
Message-ID: <88@Shasta.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!decwrl!glacier!Shasta!tang
References: <534@whuts.UUCP>

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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