# Function doesntEqual

doesntEqual(attribute, value): Filter

Creates a filter to isolate attribute values that do not 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

Filter

A filter instance

# Example

Filter for items not in new condition from the Sample ECommerce data model.

filterFactory.doesntEqual(DM.Commerce.Condition, 'New')