Skip to main content

4.13) Generic Form Of Decision Making


The generic form of the If statement is shown in Example 10.

       IF (criterion) THEN
          executable statements
       ELSE IF (criterion) THEN
          executable statements
       ELSE IF (criterion) THEN
          executable statements
       ELSE
          executable statements
       ENDIF

The general form of the if statement. I have put the fortran statements in capitals.