🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmer
4 messages
4 total messages Started by Jon Deutsch Mon, 05 Nov 1990 17:12
if within a while?
#1172
Author: Jon Deutsch
Date: Mon, 05 Nov 1990 17:12
7 lines
521 bytes
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?

Any info appreciated.
	
					-jon
Re: if within a while?
#1174
Author: Brendan Kehoe
Date: Mon, 05 Nov 1990 18:29
11 lines
1021 bytes
In article <15471@brahms.udel.edu> you write:
>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?

 Is this in C or in a shell script? [If so, which shell?]

Brendan Kehoe | Soon: brendan@cs.widener.edu [ Today? Could it be? <Ohm...> ]
For now: kehoe@scotty.dccs.upenn.edu | Also: brendan.kehoe@cyber.widener.edu
  "The latest polls indicate you're in danger of losing touch with the
	     common man."   "Oh DEAR ... heaven forfend!"
Re: if within a while?
#1184
Author: Jody Hagins
Date: Tue, 06 Nov 1990 15:38
15 lines
912 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?
|> 
|> Any info appreciated.
|> 	
|> 					-jon



Maybe if you post your example which fails, you could get some good help.


	-Jody.
Re: if within a while?
#1186
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads