using functiosn in if statements fortran code example Example: fortran if statement if(condition)then ! do this if condition is true endif