FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


CHANGE IF TO IF - THEN

Syntax:

[DO NOT] CHANGE IF TO IF [-] THEN

Function:

Systematically changes all single statement logical IF statements to IF - THEN clauses.

Where to use this command:

Operating system command line

Yes


Configuration file, config.fsp

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

Yes


Default:

IF statements are not changed by default. Note that defaults may be changed in the configuration file.

Example:

% change if to if - then changes the statement:

IF (I .LT. 0) I=0

to

IF (I .LT. 0) THEN I=0 ENDIF


Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.