in

in #

KindAccepts
Value operatorone field and a list of values

Tests whether a field value is contained in a list of allowed values. Supports both string and integer values.

Parameters #

ParameterTypeDescription
field namelistThe allowed values for that field.

Examples #

in:
  _ctx.response.status_code: [200, 201, 204]

in:
  env: ["production", "staging"]

Notes #

Inside a per-record sub-chain (e.g. for_each), field names resolve against the current record’s own attributes (file.path, log_level, …); at pipeline level they resolve against the pipeline context through the _ctx. prefix. See the Conditions reference for details.

Edit Edit this page