https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
b

best-angle-99870

02/16/2024, 1:45 PM
Hello, We have issue with our last A/B test launch. It seems that even if we set those conditions for attribute targeting, users in France or India get the value inside the experiment... Is our syntax ok for the "or" condition :
Copy code
{
  "country_code": "US",
  "platform": "ios",
  "$or": [
    {
      "account_created_at": {
        "$exists": false
      }
    },
    {
      "account_created_at": {
        "$gte": "2024-02-09 11:00:00"
      }
    }
  ],
  "app_version": {
    "$gte": "4.23.00"
  }
}
f

fresh-football-47124

02/19/2024, 12:09 AM
@future-teacher-7046 thoughts?
f

future-teacher-7046

02/19/2024, 12:45 AM
Ah, I don't think you can have other targeting conditions at the same level as
$or
So for this, you would need to add an $and:
Copy code
{
  "$and": [
    {"$or":{...}},
    {...other targeting}
  ]
}
b

best-angle-99870

02/19/2024, 9:30 AM
Thanks a lot 🙏 it's working now ! Maybe it could be great to add it to documentation 🙏
11 Views