Re: printing logical variables as "true" and "false"
- From: nospam@xxxxxxxxxxxxx (Richard E Maine)
- Date: Mon, 28 Nov 2005 13:08:29 -0800
*** Hendrickson <***.hendrickson@xxxxxxx> wrote:
> I think the function has already been written.
> print *, merge("true", "false", logical_thingo)
>
> unless I've missed something.
Except that I'd expect a "user-friendly" version to have a simpler
interface, more along the line of logical_string(logical_thingo). Among
other things, the simpler form has the advantage of not requiring the
user to remember picky things like the padding that you mentioned in
your followup.
The implementation of my logical_thing might well have your merge
incantation as its sole executable line.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- Follow-Ups:
- Re: printing logical variables as "true" and "false"
- From: Richard E Maine
- Re: printing logical variables as "true" and "false"
- References:
- printing logical variables as "true" and "false"
- From: beliavsky
- Re: printing logical variables as "true" and "false"
- From: Richard E Maine
- Re: printing logical variables as "true" and "false"
- From: *** Hendrickson
- printing logical variables as "true" and "false"
- Prev by Date: Re: printing logical variables as "true" and "false"
- Next by Date: Re: printing logical variables as "true" and "false"
- Previous by thread: Re: printing logical variables as "true" and "false"
- Next by thread: Re: printing logical variables as "true" and "false"
- Index(es):