Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created April 1, 2010 17:18
Show Gist options
  • Save natebenes/352093 to your computer and use it in GitHub Desktop.
Save natebenes/352093 to your computer and use it in GitHub Desktop.
LOGICAL FUNCTION aprilFools(day, month)
INTEGER :: day, month
IF ((day > 31) .OR. (day < 1)) THEN
! Invalid input
day = 1
END IF
IF ((day == 1) .AND. (month == 4)) THEN
aprilFools = .true.
ELSE
aprilFools = .false.
END IF
END FUNCTION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment