Function lessThan
lessThan(
attribute,value,config?):Filter
Creates a filter to isolate attribute values strictly less than a specified number.
Parameters
| Parameter | Type | Description |
|---|---|---|
attribute | Attribute | Numeric attribute to filter on |
value | number | Value to filter by |
config? | BaseFilterConfig | Optional configuration for the filter |
Returns
A filter instance
Example
Filter for items where the cost is less than 100 from the Sample ECommerce data model.
filterFactory.lessThan(DM.Commerce.Cost, 100)