returns the optional value, if present, or the default.
this convenience routine encapsulates the check for an optional argument.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | optional | :: | value |
the optional value to check for |
||
integer(kind=long_k) | :: | default |
the default to use when the optional value is not present. |
the result