https://www.growthbook.io/ logo
#announcements
Title
# announcements
a

ancient-receptionist-63597

08/04/2022, 8:57 PM
Hi, I tried inputting multiple
includes
and
does not include
comparisons into a Force Rule Feature and it looks like I am only able to have 1 of each while extras are discarded. This is to perform an array object equivalency check. Is this intentional that only one of each of these is able to be used?
f

future-teacher-7046

08/04/2022, 9:19 PM
Do you have some more details on the specific use case?
a

ancient-receptionist-63597

08/04/2022, 9:22 PM
This is to element match multiple elements in a string array while ensuring all other elements are not included in the array. We originally used
includes
but quickly realized that it element matches rather than checking equivalency. And there is not an
equals
function for string[] attribute types.
f

future-teacher-7046

08/04/2022, 9:27 PM
I think we support that in the advanced mode. It uses the MongoDB query syntax and we support the $all, $and, $or, and $not operators.
👍 1
13 Views