# Function doesntContain

doesntContain(attribute, value): Filter

Creates a filter to isolate attribute values that do not contain a specified 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 attribute to filter on
value string Value to filter by

# Returns

Filter

A filter instance

# Example

Filter for categories in the Sample ECommerce data model where the category name doesn't contain 'digital'. This filter matches categories not like 'Digital Cameras' and 'MP3 & Digital Media Players'.

filterFactory.contains(DM.Category.Category, 'digital')