Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!rice!sun-spots-request From: ittc!fbresz@uunet.uu.net Newsgroups: comp.sys.sun Subject: Re: nested ifs' in csh dont work? Keywords: Miscellaneous Message-ID: <8391@brazos.Rice.edu> Date: 1 Jun 90 12:46:10 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 14 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n193 X-Sun-Spots-Digest: Volume 9, Issue 193, message 14 [[Ed's Note: about two million people answered this one (I should have if I had been paying a little more attention). In any event, my apologies to everyone else that sent a note who did not get included. Below is the correct solution. -bdg]] >if($a == 1) then > if($b == 1) then [...] Due to the way that CSH parses if's, you must separate everything with spaces. When I did this to your code it worked fine. if ( $a == 1 ) then if ( $b == 1 ) then