Or filter
OrFilter #
Bases: RapidataFilter
A filter that combines multiple filters with a logical OR operation. This class implements a logical OR operation on a list of filters, where the condition is met if any of the filters' conditions are met.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filters
|
list[RapidataFilter]
|
A list of filters to be combined with OR. |
required |
Example
from rapidata import OrFilter, LanguageFilter, CountryFilter
OrFilter([LanguageFilter(["en"]), CountryFilter(["US"])])
This will match users who either have their phone set to English OR are located in the United States.