Filter
Keep the items that pass a test, such as greater than 100 or contains Acme; for a list of records, test one field.
Command in the List toolkit · id ooa.list/filter · 5 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| List | List | Yes | Source list. | |
| Operator | String | Yes | Test; matches takes a regular expression. | |
| Value | Any | No | Value to compare with (not needed for empty/not_empty). | |
| Field | String | No | For a list of records (dictionaries): the field to test; the item itself when empty. | |
| Match case | Boolean | No | false | Compare text with upper/lower case taken into account. |
Outputs
| Output | Type | What it is |
|---|---|---|
| list | List | Items kept. |
| count | Number | Number of items kept. |