# 3.2 Logical Assignment Statement

The logical assignment statement assigns the value of the logical expression on the right of the equal sign to the logical scalar memory reference on the left of the equal sign.

A logical assignment statement takes the following form:

    v = e

v
  Is a logical scalar memory reference.
e
  Is a logical, integer, or arithmetic expression.

Values must have previously been assigned to all symbolic references that appear in the expression. The expression must yield a logical value.

Examples

The following examples show valid logical assignment statements:

    PAGEND = .FALSE.

    PRNTOK = LINE .LE. 132 .AND. .NOT. PAGEND

    ABIG = A.GT.B .AND. A.GT.C .AND. A.GT.D

Previous Page Next Page Table of Contents