Return the optional integer value or its fallback.
Selects val when present and otherwise returns default.
iterations = optval(max_iters, 100)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in), | optional | :: | val |
Optional integer value. |
|
| integer, | intent(in) | :: | default |
Value returned when |