Read a TOML logical value if present.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_table), | intent(inout) | :: | table | |||
| character(len=*), | intent(in) | :: | key | |||
| logical, | intent(inout) | :: | v |
subroutine toml_get_logical(table, key, v) type(toml_table), intent(inout) :: table character(len=*), intent(in) :: key logical, intent(inout) :: v logical :: tmp integer :: stat tmp = v call get_value(table, key, tmp, stat=stat) if (stat == toml_stat%success) v = tmp end subroutine toml_get_logical