✅ You are viewing documentation for the latest version of Compose SDK.
Version:
# Function equals
equals(
attribute
,value
,config
?):Filter
Creates a filter to isolate attribute values that equal a specified string or number.
When filtering against a string:
- Matching is case insensitive.
- You can optionally use wildcard characters for pattern matching, as described in the
like()
function.
# Parameters
Parameter | Type | Description |
---|---|---|
attribute | Attribute | Text or numeric attribute to filter on |
value | number | string | Value to filter by |
config ? | BaseFilterConfig | Optional configuration for the filter |
# Returns
A filter instance
# Example
Filter for items in new condition from the Sample ECommerce data model.
filterFactory.equals(DM.Commerce.Condition, 'New')