What Does the Fortran Statement 'IF ( IP - I1 ) 180, 170, 180' Mean?

  • Topic: Fortran 
  • Thread starter Thread starter agalya
  • Start date Start date
  • Tags Tags
    Fortran
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 5K views
agalya
Messages
9
Reaction score
0
Hi all,

What is the meaning of the following Fortran statement

IF ( IP - I1 ) 180, 170, 180

kindly help,
thank u,
 
Physics news on Phys.org
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: