fortran 95 if statement code example
Example 1: fortran elseif statement
if(condition1)then
! do this if condition1 is true
else if(condition2)then
! else do this if condition2 is ture
endif
Example 2: fortrna if statement
if(conditional)then
! Do something
elseif(conditional)then
! Do something else
else
! Otherwise do this
endif