Xref: utzoo comp.binaries.ibm.pc.d:8528 comp.sys.ibm.pc:53742 Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!usc!ucsd!ucrmath!campanella!stebbins From: stebbins@campanella.ucr.edu (john stebbins) Newsgroups: comp.binaries.ibm.pc.d,comp.sys.ibm.pc Subject: Re: Other 4DOS Bugs? Message-ID: <7465@ucrmath.ucr.edu> Date: 7 Jul 90 18:32:49 GMT References: <3171@phred.UUCP> <1990Jul7.151214.3753@mlb.semi.harris.com> Sender: news@ucrmath.ucr.edu Reply-To: stebbins@campanella.ucr.edu (john stebbins) Followup-To: comp.binaries.ibm.pc.d Distribution: usa Lines: 19 I haven't fully explored this one yet, so I can't say that I'm sure my conclusions are completely correct yet, but here goes anyway. In a batch file (I happen to be using the .btm type): Iff condition1 then gosub subroutine endiff :subroutine iff condition2 then commands endiff return gives an error. Unexpected endiff when it encounters the endiff in the first iff when condition1 is true. It acts like the second iff (the one in the subroutine) is making it forget that it is still in the middle of the first iff. John Stebbins stebbins@ucrmath.ucr.edu