# wgrib2: -endif

## Introduction

The -endif option is part of the
-if,
-else,
-endif structure for conditional execution of wgrib2 options.
More details are in the [-if](./if.md) documentation.
The -endif option was introduced with wgrib2 v3.0.0 to replace
the older version 1 IF structure.

See also:
[-if](./if.md),
[-else](./else.md),
[-match](./match.md),

---

> Description: endif terminates if block

_Docs derived from <https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/endif.html>_
