# Function equals
equals(
attribute
,value
):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 | string | number | Value to filter by |
# Returns
A filter instance
# Example
Filter for items in new condition from the Sample ECommerce data model.
filterFactory.equals(DM.Commerce.Condition, 'New')