UDF Help
Hi there. I have a question about setting up a user data filter.
The examples in the help docs seem to work in a scenario where only one value exists in the target field. For example:
• Customer’s city has one value, such that it looks like this: City = Vancouver
• Therefore, the following UDF works: {label/customer_city} = “Vancouver”
But how would I construct a UDF where the target column contains an array of values? For example:
• Customer city has an array of values and looks like this: City = [Vancouver, Toronto, Halifax].
• I want to define a UDF that is equivalent to {label/customer_city} contains “Vancouver”
What would be an appropriate MAQL expression to accomplish this?