Switching on fields containing delimited values
You may have fields in the flow of your rule that contains delimited values. We now provide a mechanism to split out the delimited values and then switch on the values found.
A delimiter is a sequence of one or more characters specifying the boundary between separate, independent values. An examples of a delimiter is the comma, which acts as a field delimiter in a sequence of comma-separated values.
Other commonly used delimiters are pipes “|”, this is useful because it is rarely found in text, semicolon (;), quotes ( ", ' ), braces ({}), or slashes ( / \ ).
If you have delimited values select Delimiter-separated values on the left hand side and below add the delimited you would like to use. In the example above we are using the pipe “|”.
Now choose the matching conditions. This allows you to select whether the value in the field should exactly match the value in the case value or whether it simply needs to contain it. In the example here we have “Contains case value” selected.
Prioritisation
In the example above we are switching on the Persona fields held against an individual. In the majority of cases when switching you only have a single value to switch on. With Personas an individual can sit in more than one persona. How do you choose which one to switch on if they belong to more than one?
In the switch cases screen you can prioritise the the case values allowing you to put the most important ones at the top and the least important and default values at the bottom.
In the example above anyone with Luxury as a persona value will flow down the Luxury flow. Anyone with Family and Business would go down the Family flow as this is a higher priority than business. Default should always be added at the bottom.