Newsgroups: rec.arts.int-fiction
Path: gmd.de!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!xyplex4-2-3.ucs.indiana.edu!zbir
From: Zachery Bir <zbir@silver.ucs.indiana.edu>
Subject: Re: ZIP and an Inform question...
Message-ID: <CwtDpz.CKF@usenet.ucs.indiana.edu>
X-Xxmessage-Id: <AAAE25531C011217@xyplex4-2-3.ucs.indiana.edu>
X-Xxdate: Tue, 27 Sep 1994 01:38:59 GMT
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: xyplex4-2-3.ucs.indiana.edu
Organization: Goobers, Freaks, Geeks, and Ass.
X-Newsreader: Nuntius Version 1.2
References: <Cwt4vE.2LC@usenet.ucs.indiana.edu>
Date: Wed, 28 Sep 1994 00:37:10 GMT
Lines: 57

In article <Cwt4vE.2LC@usenet.ucs.indiana.edu> colyer,
colyer@nickel.ucs.indiana.edu writes:
>
>Actually I didn't post the code correctly...  I do have the if
>statements in routine blocks....
>
>
>description
>[;
>if (...) "BLAH";
>   "BLOO";
>if (...) "FOO";
>   "BAR";
>],
>
>
>"BLAH" and "BLOO" will print based on the condition, but "FOO" and "BAR"
>will not.

Jim,

You should use 'print' so that it doesn't automatically return 'true'
after printing it out. If you use 'print ...' it won't return and will
continue. Also, you need to nest the second conditional statement, and
use else's. At least I got this to work...

	with description
		[; 	if (...)
 			{
				print "BLAH";
				if (...)
				{
					print "FOO";
				}
				else print "BAR";

			}
			else print "BLOO";
		],

Zac

>
>
>Jim
>
>
>--
> #include <std_disclaimer.h>                                            
"33"
>    James E. Colyer    INTERNET:colyer@nickel.ucs.indiana.edu   
Lovecraft   
> \\        "Surfin' the InterNet in style..."      Amiga 1000/1200      
 // 
>  \X/             |/-\| / - \ |  /  -  \  |   /   -   \                
\X/  
>
