# filter (objectlist, x.LogicalStatement)

This function evaluates a specified logical test by accessing the named attribute of objects within a given list. It then filters the objects that meet the criteria of the test and returns a list of these objects.

**Example:**

```xml
<O N="filterObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 13.02.2023 -->
    <P N="List1" V="[0,1,2,3,4,5,6,7,8,9]" />
    <P N="OddNumbers" V="filter(List1, x%2 .NE. 0)" />
</O>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2167668792/image-20230213-163942.png?api=v2) As demonstrated, the "List1" list filters out the odd numbers through the application of filter functions. To view this example in the library, see (<https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=Functions&obj=objidk25lsn8fluj91ulluv5em>)
