home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!sparc0b!ctaylor
- From: ctaylor@cs.uiuc.edu (Conrad W Taylor)
- Subject: How does one return a logical value...???
- Message-ID: <BxwrJC.GME@cs.uiuc.edu>
- Sender: news@cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- Date: Wed, 18 Nov 1992 10:52:22 GMT
- Lines: 18
-
- I have written a function which returns a logical
- value, CheckActivity(previous, ROWS, COLS), previous is an
- array. I'm using it like this:
-
- IF (CheckActivity(previous, ROWS, COLS) .EQ. .TRUE.) THEN
- uncontrol = uncontrol + 1
- ENDIF
-
- My compiler says that I have mixed types when I use .TRUE. . What
- should I use I tried T instead of .TRUE. . It doesn't give errors
- but it doesn't increment the uncontrol... it never goes into the
- IF statement; skips it completely. I'm new to FORTRAN and please
- if anyone knows what I should do, let me know via e-mail. Thanks
- in advance to all that reply to my e-mail.
-
- -Conrad
-
-
-