Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ListListYesSource list.
OperatorStringYesTest; matches takes a regular expression.
ValueAnyNoValue to compare with (not needed for empty/not_empty).
FieldStringNoFor a list of records (dictionaries): the field to test; the item itself when empty.
Match caseBooleanNofalseCompare text with upper/lower case taken into account.

Outputs​

OutputTypeWhat it is
listListItems kept.
countNumberNumber of items kept.