home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!Think.COM!sandee
- From: sandee@Think.COM (Daan Sandee)
- Newsgroups: comp.lang.fortran
- Subject: Re: How does one return a logical value...???
- Date: 18 Nov 1992 12:19:36 GMT
- Organization: TMC
- Lines: 19
- Distribution: world
- Message-ID: <1edccoINNkab@early-bird.think.com>
- References: <BxwrJC.GME@cs.uiuc.edu>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <BxwrJC.GME@cs.uiuc.edu>, ctaylor@cs.uiuc.edu (Conrad W Taylor) writes:
- |> IF (CheckActivity(previous, ROWS, COLS) .EQ. .TRUE.) THEN
- |> uncontrol = uncontrol + 1
- |> ENDIF
- |>
- |> My compiler says that I have mixed types when I use .TRUE. .
-
- I don't know why it would object to .TRUE. Like that, (CAPITALS, dots
- immediately adjoining the keyword (yes, I've known compilers to complain
- about . TRUE .)) it is standard Fortran. However,
-
- IF (CheckActivity(previous, ROWS, COLS) ) THEN
-
- also works. Your variable being a logical, you can test on it immediately.
-
-
- Daan Sandee sandee@think.com
- Thinking Machines Corporation
- Cambridge, Mass 02142 (617) 234-5044
-