Function between
between(
attribute,valueA,valueB,config?):Filter
Creates a filter to isolate attribute values within or exactly matching two specified numerical boundaries.
Parameters
| Parameter | Type | Description |
|---|---|---|
attribute | Attribute | Numeric attribute to filter on |
valueA | number | Value to filter from |
valueB | number | Value to filter to |
config? | BaseFilterConfig | Optional configuration for the filter |
Returns
A filter instance
Example
Filter for items from the Sample ECommerce data model where the cost is greater than or equal to 100 and less than or equal to 200.
filterFactory.between(DM.Commerce.Cost, 100, 200)