Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!genrad!panda!talcott!harvard!cmcl2!rna!rocky2!datagen!boykin From: boykin@datagen.UUCP Newsgroups: net.micro,net.micro.pc Subject: Re: null as variable in batch file Message-ID: <22@datagen.UUCP> Date: Fri, 14-Feb-86 18:37:10 EST Article-I.D.: datagen.22 Posted: Fri Feb 14 18:37:10 1986 Date-Received: Sun, 16-Feb-86 08:43:10 EST Organization: Data General Distributed Systems, Westborough, MA Lines: 17 Xref: linus net.micro:12611 net.micro.pc:6784 >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. I use the following to test for a null (non-existent) argument: IF '%1' == '' Joe Boykin Sr. Project Leader Data General Corp. {allegra, ihnp4, decvax}!datagen!boykin