Basics
Languages
Tools
OS
Resources
PmWiki
pmwiki.org
edit SideBar
The structure of if statements in Fortran is similar, but slightly different from other languages, as usual:
if ( condition ) then action1 else action2 endif
with .eq. for equal, .ne. for not equal, .and., and .or. as conditionals.
.eq.
.ne.
.and.
.or.