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, | optional | :: | value |
the optional value to check for |
||
integer | :: | default |
the default to use when the optional value is not present. |
the result