Hey Growthbook team, have some question 1. is it p...
# announcements
g
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
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
❤️ it. Thanks @fresh-football-47124 for low latency. Will give try to this.
@glamorous-florist-39551 here.
g
@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
hi Prince
g
Amazing. Thanks. Any specific reason, this is not on in the simple mode on ui?
f
just haven’t built it yet
its quite hard to make mixing ANDs and ORs intuitive
g
Ah! Correct. We'll try if we can come up with something
f
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
Yes! Which services do you generally use for reference?
f
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
Alright