Filter for excludign a range


#1

Hey guys, I’m using a filter for a range like this:

let filter = cf.Filter("value")
    .label("value")
    .operation("GE,LT")
    .value([17, 34]);

But, I need to exclude that range, is there a way to use something like a NOT IN operation in the filter for a range?


#2

Hey @ralf, actually we recently release a new filter operatio, so you can use something like this:

let filter = cf.Filter("value")
    .label("value")
    .operation("LT,GE")
    .value([17, 34]);

You just have to flip the operator, that excludes the specified range.


#3

That’s useful, i used it and it works good, thank you so much :sunglasses: