Comparing string keys with greater than and less than?

Comments

3 comments

  • Bilal Al-Shahwany

    Hi Alexander, From Split UI, you can use "select matcher->String->is in List" for targeting rule custom attribute, then create attribute object in your code, this will compare the attribute string in the code to the list of strings added to the UI.

    Checkout the corresponding SDK doc for a code example using custom attribute.

    Thanks

    Bilal

    0
    Comment actions Permalink
  • Alexander Ravikovich

    Bilal Al-Shahwany Tnx, but I'm asking for something different. Testing attribute against a list of values is easy. But when I already have 10k accounts, I don't think this is a good solution to create a list of 10k account ids, and then checking if my attribute is not on this list, to emulate "enable only for new accounts" behavior.

    Looks like I must do it in the code, by explicitly providing account registration date to split, and use date comparing, of integers in case of passing timestamp.

    Tnx anyway :)

    0
    Comment actions Permalink
  • Bilal Al-Shahwany

    Hi Alexander, that makes sense, if you have a large group it is better to use an attribute like registration date.

    Thanks

    Bilal

    0
    Comment actions Permalink

Please sign in to leave a comment.