# Function lessThanOrEqual

lessThanOrEqual(attribute, value): Filter

Creates a filter to isolate attribute values less than or equal to a specified number.

# Parameters

Parameter Type Description
attribute Attribute Numeric attribute to filter on
value number Value to filter by

# Returns

Filter

A filter instance

# Example

Filter for items where the cost is less than or equal to 100 from the Sample ECommerce data model.

filterFactory.lessThanOrEqual(DM.Commerce.Cost, 100)