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

aloof-greece-14875

01/31/2024, 5:54 PM
question about the advanced mode + using growthbook to target specific groups — we had the following as Targeting conditions
Copy code
{
  "PATIENT_ID": 1111,
  "$or": [
    {
      "PATIENT_PLATFORM": {
        "$inGroup": "web_group"
      }
    },
    {
      "PATIENT_APP_VERSION": {
        "$vgte": "230.0.0"
      }
    }
  ]
}
is this correct for the logic of:
"if patient ID is 1111 AND (patient platform is web OR mobile version ≥ 230), turn on the feature"
or is this different logic? based on what we’ve seen we think it might be
"if patient ID is 1111 OR patient platform is web OR native ≥ 230)"
h

happy-autumn-40938

02/01/2024, 4:38 AM
I believe the top snippet is
Copy code
if (
  PATIENT_ID == 1111
  AND (
    PATIENT_PLATFORM is in "web_group"
    OR PATIENT_APP_VERSION > "230.0.0"
  )
)
You can test your targeting rules by using the "Test Feature Rules" module on the feature page: https://docs.growthbook.io/features/rules#testing-rules
👀 1
a

aloof-greece-14875

02/01/2024, 2:16 PM
Okay thanks for taking a look!
5 Views