Transforms
Drop Key Where Value Equal
Drop a key from the record where the value is equal to a specified value.
Overview
Drop Key Where Value Equal removes a single key from a record when that key's value matches the configured value. The rest of the record is kept. If the value doesn't match, or the key isn't present, the record passes through unchanged.
To discard the whole record instead of a single key, use Drop Record Where Value Equal.
Configuration
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| key | string | true | — | The key to drop from the record |
| value | any | true | — | The value to drop to check for equality with the record's value |
Example
Code
Given the input record:
Code
The output record will be:
Code
If the value does not match, given the input record:
Code
The output record is unchanged:
Code
Notes
- The comparison is an exact match on both value and type: the string
"10"does not match the number10. - Use this operation with scalar values (strings, numbers, and booleans).
Last modified on