🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5449

null as variable in batcg file h file

#5449
From: ROBIN
Date: Tue, 11 Feb 1986 01:43
6 lines
786 bytes
Does anyone know how to detect a null as variable input in a batch file?
Specifically:

foo %1   --how do I detect case where %1 is omitted, thus avoiding
	   an error?  I've tried 'if %1=='':goto xx' as well as
==' '
Technical Details
Message-ID: <533@whuts.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuts!2212msr

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 exptools; site whuts.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuts!2212msr
From: 2212msr@whuts.UUCP (ROBIN)
Newsgroups: net.micro.pc,net.micro
Subject: null as variable in batcg file      h file
Message-ID: <533@whuts.UUCP>
Date: Mon, 10-Feb-86 20:43:18 EST
Article-I.D.: whuts.533
Posted: Mon Feb 10 20:43:18 1986
Date-Received: Wed, 12-Feb-86 07:33:44 EST
Distribution: net
Organization: AT&T Bell Laboratories
Lines: 6