Check if an instance of the TOML data structure contains a list
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(inout) | :: | table |
Instance of the TOML data structure |
||
character(len=*), | intent(in) | :: | key |
Key to read from |
logical function has_list(table, key) !> Instance of the TOML data structure type(toml_table), intent(inout) :: table !> Key to read from character(len=*), intent(in) :: key type(toml_array), pointer :: children has_list = .false. if (.not.table%has_key(key)) return call get_value(table, key, children, requested=.false.) ! There is an allocated list has_list = associated(children) end function has_list