.true. unless a tag names a file without naming the variable
inside it. A blank file (tag not file-driven) is valid, and
a var with no file is harmless — the tag simply never
registers — so only the one combination is rejected.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dataovr_entry_config_t), | intent(in) | :: | e |
pure function dataovr_entry_is_valid(e) result(ok) !! `.true.` unless a tag names a file without naming the variable !! inside it. A blank `file` (tag not file-driven) is valid, and !! a `var` with no `file` is harmless — the tag simply never !! registers — so only the one combination is rejected. type(dataovr_entry_config_t), intent(in) :: e logical :: ok ok = .not. (len_trim(e%file) > 0 .and. len_trim(e%var) == 0) end function dataovr_entry_is_valid