# wgrib2: -elseif_n

## Introduction

The -elseif_n option is part of the
-if,
-else,
-endif structure for conditional execution of wgrib2 options.
The -elseif type option must follow an
-if or -elseif type option, and it must preceed either the next
-elseif type,
-else or
-endif option.

The -elseif_n is the
-elseif equivalent of the
-if_n option.

More details are in the [-if](./if.md) documentation.
The -else option was introduced with wgrib2 v3.0.0 to replace
the older version 1 IF structure.

See also:
[-if](./if.md),
[-if_fs](./if_fs.md),
[-if_n](./if_n.md),
[-else](./else.md),
[-elseif](./elseif.md),
[-elseif_fs](./elseif_fs.md),
[-endif](./endif.md),
[-match](./match.md),

---

> Description: elif X elseif (inv numbers in range), X=(start:end:step)

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