Hello-
I’m after some advice on the best way to compare some data.
I have an offer that is available to certain groups of people. It is stored as Metadata so will have values such as:
Group1; Group3; Group 4
I have users that belong to a number of groups, again using metadata, for instance:
Group1; Group2; Group 3
If any of the user groups matches any of the offer groups then the asset should be displayed.
I can’t find an elegant solution. It’s simple if a user is just in one group but the many to many test is befuddling me. Any ideas would be greatly appreciated.
Is there a way to iterate around an array and then use a regex asset or just ^contains to see if that lives inside the other list?
Many thanks in advance.
Matrix Version:5.3.4.0