Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Meaning for fortran statement

  1. Oct 25, 2009 #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. Oct 25, 2009 #2


    User Avatar

    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 this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Meaning for fortran statement