delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/02/15/07:38:11

Message-ID: <3305A296.79D2@ro.com>
Date: Sat, 15 Feb 1997 05:48:38 -0600
From: Killion <killion AT ro DOT com>
Reply-To: killion AT ro DOT com
Organization: CorbinSoft
MIME-Version: 1.0
To: opendos AT mail DOT tacoma DOT net
Subject: Re: [opendos] [OpenDOS] Wishlist part 2
References: <Pine DOT LNX DOT 3 DOT 95 DOT 970215000408 DOT 900F-100000 AT capslock DOT com>
Sender: owner-opendos AT mail DOT tacoma DOT net

mharris AT blackwidow DOT saultc DOT on DOT ca wrote:
> 
> On Fri, 14 Feb 1997, Killion wrote:
> 
> > yeep wrote:
> > >
> > > Okay, here's today's update on my (all of our) wishlist:
> > >
> > ...fast forward...
> > > (14] Fix "set path=c:\games;%path%" bug (I'm doing some checking on this,
> >
> > While we're in that ballpark, I'd like to see SET supported by IF.
> 
> How so?
> 
> IF "%VARIABLE" != "" THEN ...
> 
> That works for me.  Or is this not what you meant?
> 

I'm looking for something like this:

IF _CONDITION_ == _TRUE_ THEN SET _ENV_VAR_=_VALUE_

OpenDOS gives me an error when I try to use the above syntax. I can get
IF to use GOTO, ECHO, and MD with no problems, but it just doesn't like
SET. Now that I'm looking at it (DOSBook), the explanation of IF's logic
contains a critical flaw. 

	...is executed when the condition is true (or true, if you specify IF
NOT)...

I apologize if I seem to be nitpicking.

Killion

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019