0
Q:

fortran if statement

if(condition)then
	! do this if condition is true
endif
0
if(conditional)then
    ! Do something
elseif(conditional)then
    ! Do something else
else
    ! Otherwise do this
endif
0
if(condition1)then
	! do this if condition1 is true
else if(condition2)then
	! else do this if condition2 is ture
endif
0

New to Communities?

Join the community