Hi!
You can check if the user has selected All
and never apply that filter.
something like this:
#base filter
filters=(
Filter.by_property("color").equal("grau") &
Filter.by_property("price").less_or_equal(300)
)
if selected != "All" or selected != None:
filters = filters & Filter.by_property("program").equal(selected)
query = collection.query.fetch_objects(
filters=filters
)
for object in query.objects:
print(object.properties)
We were discussing more on conditional filters in code here:
Let me know if this helps!