> Date: Thu, 02 Sep 2004 09:50:08 +0100 > From: Ian Chivers <[log in to unmask]> > I'm currently writing some programs for the > next edition of our book and am converting > some fortran 66 style code to fortran 90 style. > > The code has one line if statements, e.g. > > if(modulo(yyyy, 400) /= 0 .and. modulo(yyyy, 100) == 0) t = 0 > > if(ddd > 59+t) dd = dd + 2 - t > > if(mm >= 1 .and. mm <= 12) return > > Jane and I tend to write this type of statement as an > > If then > > Endif > > I was curious as to what other people did with > essentially one line if statements. I leave them as one line. Unless they won't fit on one line, in which case I use the if-then-endif form. > cheers > > Ian Chivers >