array_where_not_between Filter

Filters the collection by determining if a specified item value is outside of a given range

{% set prices = [
	{'product':'desk','price':200},
	{'product':'chair','price':80},
	{'product':'bookcase','price':150},
	{'product':'pencil','price':30},
	{'product':'door','price':100},
] %}
{{ prices|array_where_not_between('price', [100,200])|array_values|json_encode }}

{# [{"product":"chair","price":80},{"product":"pencil","price":30}] #}