Meaning for fortran statement

  1. Hi all,

    What is the meaning of the following Fortran statement

    IF ( IP - I1 ) 180, 170, 180

    kindly help,
    thank u,
     
  2. jcsd
  3. jtbell

    Staff: Mentor

    This is an "arithmetic IF" statement.

    If IP - I1 < 0, go to statement 180.
    If IP - I1 = 0, go to statement 170.
    If IP - I1 > 0, go to statement 180.

    You must be reading very old code. :smile:
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook

Have something to add?