fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref 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 constructs.

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 No

Default

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

Examples

The command, in an fsp file:

% 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 2024 Software Validation Ltd. All rights reserved.