Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 3/31/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Visible to Intel only — GUID: GUID-0A706E31-4F8B-4FD5-9856-BC49E828F978

Document Table of Contents

CONTINUE

Statement: Primarily used to terminate a labeled DO construct when the construct would otherwise end improperly with either a GO TO, arithmetic IF, or other prohibited control statement.

CONTINUE

The statement by itself does nothing and has no effect on program results or execution sequence.

Example

The following example shows a CONTINUE statement:

DO 150 I = 1,40 40 Y = Y + 1 Z = COS(Y) PRINT *, Z IF (Y .LT. 30) GO TO 150 GO TO 40 150 CONTINUE

The following shows another example:

DIMENSION narray(10) DO 100 n = 1, 10 narray(n) = 120 100 CONTINUE