next up previous contents
Next: General Form of Declarations Up: Declaration of Variables Previous: Complex   Contents


Logical (Boolean) variables are declared as
logical Q, P  or  
logical :: Q, P
They can take only (one of) two possible values: true or false (written, in Fortran notation, .TRUE. and .FALSE.). A declaration with initialization may look like
logical :: Q=.TRUE., P=.FALSE.

Adrian Sandu 2001-08-26