home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4347 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.1 KB

  1. Path: sparky!uunet!think.com!Think.COM!sandee
  2. From: sandee@Think.COM (Daan Sandee)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: How does one return a logical value...???
  5. Date: 18 Nov 1992 12:19:36 GMT
  6. Organization: TMC
  7. Lines: 19
  8. Distribution: world
  9. Message-ID: <1edccoINNkab@early-bird.think.com>
  10. References: <BxwrJC.GME@cs.uiuc.edu>
  11. NNTP-Posting-Host: telecaster.think.com
  12.  
  13. In article <BxwrJC.GME@cs.uiuc.edu>, ctaylor@cs.uiuc.edu (Conrad W Taylor) writes:
  14. |>         IF (CheckActivity(previous, ROWS, COLS) .EQ.  .TRUE.) THEN
  15. |>           uncontrol = uncontrol + 1
  16. |>         ENDIF
  17. |> 
  18. |> My compiler says that I have mixed types when I use .TRUE. .  
  19.  
  20. I don't know why it would object to .TRUE. Like that, (CAPITALS, dots
  21. immediately adjoining the keyword (yes, I've known compilers to complain
  22. about . TRUE .)) it is standard Fortran. However,
  23.  
  24.         IF (CheckActivity(previous, ROWS, COLS) )  THEN
  25.  
  26. also works. Your variable being a logical, you can test on it immediately.
  27.  
  28.  
  29. Daan Sandee                                           sandee@think.com
  30. Thinking Machines Corporation
  31. Cambridge, Mass 02142                                 (617) 234-5044
  32.