...
| Excerpt |
|---|
|
Easy peasy. Use the "defined" function which takes a single key name as argument. e.g. |
grib_filter/bufr_filter: How can I check if a key exists (is defined) in a message?
Step-by-step guide
Easy peasy. Use the "defined" function which takes a single key name as argument. e.g.
| Code Block |
|---|
| language | bash |
|---|
| title | grib_filter example |
|---|
|
if (defined(Latin1)) {
print "Key Latin1 is there for this message";
} |
Related articles
| Content by Label |
|---|
| showLabels | false |
|---|
| max | 5 |
|---|
| spaces | ~usa |
|---|
| showSpace | false |
|---|
| sort | modified |
|---|
| reverse | true |
|---|
| type | page |
|---|
| cql | label in ("kb-how-to-article","eccodes-faqs","grib_filter","grib","keys") and label in ("keys","grib_filter","bufr_filter") and type = "page" and space = "UDOC" |
|---|
| labels | kb-how-to-article |
|---|
|
...