2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
10 PRESENT --- Determine whether an optional dummy argument is specified
11 *********************************************************************
13 .. function:: PRESENT(A)
15 Determines whether an optional dummy argument is present.
18 May be of any type and may be a pointer, scalar or array
19 value, or a dummy procedure. It shall be the name of an optional dummy argument
20 accessible within the current subroutine or function.
23 Returns either ``TRUE`` if the optional argument :samp:`{A}` is present, or
33 .. code-block:: fortran
38 .. code-block:: fortran
41 WRITE(*,*) f(), f(42) ! "F T"
44 INTEGER, INTENT(IN), OPTIONAL :: x