🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1186

Re: if within a while?

#1186
From: JB Christy
Date: Tue, 06 Nov 1990 15:42
34 lines
1826 bytes
In article <15471@brahms.udel.edu> jon@brahms.udel.edu (Jon Deutsch) writes:
>I'm trying to nest an IF within a WHILE, but am
>getting some very funky errors because of it.
>Can anyone mail a simple syntax that can be followed?

while ( you are asking for help ) {
    if ( you would be more specific ) {
	we MIGHT have a chance in he|| of helping you ;
    }
    else {
	don't hold your breath ;  /*  B-) */
    }
}

>Any info appreciated.

Indeed.

Could you at least tell us what language you're trying to use?  In general,
a dialect (e.g. Microsoft C vs. gcc) is useful too, but for something this
basic it may not be necessary here.  Similarly, the platform is usually
helpful (Macintosh vs. Sun 4.0), as are examples of what you've tried and
what errors, specifically, you've received.

In general, when asking for help on the net, dump core.  That is, tell us
*everything* that might even be remotely relevant.  It might take a little
sophistication to analyze a core dump, but it takes a miracle to figure out
what happened when all we see is '?'.  [Note:  "dumping core" is an analogy.
Do *NOT* post an acutal core dump!]
-- 
JB					"Don't worry about her.  She's still
Resource One, Inc.			 upset because somebody dropped a
***  I was the only one at the   ***	 house on her sister."
*** keyboard when this was typed ***		-- from the movie Beetlejuice
Technical Details
Message-ID: <4402@aix.aix.kingston.ibm.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!ibmps2!aix!vendijb
References: <15471@brahms.udel.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!ibmps2!aix!vendijb
From: vendijb@aix.aix.kingston.ibm.com (JB Christy)
Newsgroups: comp.unix.programmer
Subject: Re: if within a while?
Message-ID: <4402@aix.aix.kingston.ibm.com>
Date: 6 Nov 90 15:42:34 GMT
References: <15471@brahms.udel.edu>
Organization: Resource One, Inc.
Lines: 34