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