Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

IfStatements

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.

Edit - History - Print - Recent Changes - Search
Page last modified on September 11, 2015, at 11:47 AM