Platform check not equals not working as expected (multiple OR values) #1147
Replies: 3 comments
-
Hi @ktenvregelaar, thanks for reporting the issue. We tested this scenario and it turns out that this is working as expected for the "not equals" operator. Reason is because those are OR conditions. And so the logic behind is - walk through all of the values, and if any of them are not equal to the supplied value, then return true. However, we realised that we are missing "includes" and "excludes" operators, that should solve your problem and allow OR operator with what you expected. We will add this in the next release. As a workaround for now, you can use "custom" strategy, which you can setup like in the attached screen. Then in your code you can do the following (JS SDK): Please make sure that you do not name your Custom key as "Platform" (I used attr_platform in the above example), otherwise it will clash with the preset Platform rule. |
Beta Was this translation helpful? Give feedback.
-
Opened #1141 |
Beta Was this translation helpful? Give feedback.
-
#1141 Has been resolved and will be released in the next version. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The not equals check on platform in a split targeting rule always applies if you select more than 1 platform.
Which area does this issue belong to?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If a split targeting rule is configured as Platform not equals android or ios I would expect it to return true if the platform is linux, windows or macos and return false if the platform is android or ios
Versions
Beta Was this translation helpful? Give feedback.
All reactions