Skip to content

-not_if

Introduction

The -not_if option returns true or false and is the start of the IF block structure. The -not_if option is like the -if option except the results are reversed. For example, -if ':HGT:' is true if the match inventory contains the string ':HGT:', and the next block is executed. The option -not_if ':HGT:' does the opposite and does not execute the next block. See -if for details about the IF block structure.

Usage

-not_if X
   X is a regular expression
   returns true if X is not in the match inventory, false otherwise

See also: -not, -end, -i, -if, -if_fs, -match, -match_inv, -not_if_fs, -fi. -endif. -else. -set_regex.


Description: if X not_if X (regular expression), conditional execution on not match

Docs derived from https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/not_if.html