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

gifted-cat-24658

11/21/2022, 6:23 PM
Hey Growthbook team, have some question 1. is it possible to serve different value for a feature based on different condition? 2. Does growthbook dashboard support
or
condition/operator in simple mode?
f

fresh-football-47124

11/21/2022, 6:37 PM
Hi Dhruvin, 1. yes, you can add arbitrary targeting conditions for feature flags based on any attributes 2. Not explicitly in simple mode, but you can do ‘in the list’, using attributes, or other methods to do ORs. There are usually simple ways of doing this.
🙏 1
g

gifted-cat-24658

11/21/2022, 6:44 PM
❤️ it. Thanks @fresh-football-47124 for low latency. Will give try to this.
@glamorous-florist-39551 here.
g

glamorous-florist-39551

12/09/2022, 10:28 AM
@fresh-football-47124 Just to eliminate any misunderstandings, we want OR operator between multiple targeting conditions. For example in the image attached, it only allows and condition between those attributes. The same looks like this
Copy code
{
  "number": {
    "$in": [
      "12345678"
    ]
  },
  "id": "1"
}
in advanced mode. Can you help with the specifics here?
@fresh-football-47124 Did you get a chance to see this?
f

fresh-football-47124

12/10/2022, 5:05 PM
hi Prince
g

glamorous-florist-39551

12/11/2022, 9:19 AM
Amazing. Thanks. Any specific reason, this is not on in the simple mode on ui?
f

fresh-football-47124

12/11/2022, 9:23 AM
just haven’t built it yet
its quite hard to make mixing ANDs and ORs intuitive
g

glamorous-florist-39551

12/11/2022, 9:24 AM
Ah! Correct. We'll try if we can come up with something
f

fresh-football-47124

12/11/2022, 9:25 AM
I’m sure there are some good examples from other services.
We could also build a quick testing area, where you could enter some values and see what features or rules were applied
g

glamorous-florist-39551

12/11/2022, 9:30 AM
Yes! Which services do you generally use for reference?
f

fresh-football-47124

12/11/2022, 9:32 AM
we don’t use anyone in particular, we just look around to see if anyone does the UX well, and then typically improve it
g

glamorous-florist-39551

12/11/2022, 9:34 AM
Alright
14 Views