
ScottB.07094 (American Century Investments) asked a question.
Hi all,
I'm trying to create a Group Rule that will add a user based on the following criteria:
((var1 == "Red") OR (var1 == "Blue")) AND ((var2 == "Dog") OR (var2 == "Cat"))
Using the syntax above, the statement is evaluating to false for a user I have verified is both "Blue" and "Dog". Both var1 and var2 are string type user.x variables.
Do I have a syntax issue or do I need to go about this a different way altogether? I'd like to avoid a complex string function if possible, but I'll go that route if I need to. I'm open to any suggestions you may have. Thanks!

I don't believe I've attempted that exact method, but here's an alternative way to do it.
Arrays.contains({"Red", "Blue"}, var1) AND Arrays.contains({"Dog", "Cat"}, var2)