Includes
Checks if a single source string includes the sub-string provided.
Example Use Case
A mobile phone company wants to check what type of phone a customer purchased from their web site. They can use this information to decide whether or not to promote a different phone to the customer when they visit the website in the future. Using the includes function, they can create an Eligibility Rule that checks whether or not a customer triggered a completion event, by purchasing an iPhone.
Example Eligibility Rule
Proposition name for phone owned includes "iPhone" ignoring case
Where the parameters for Proposition name are as follows:
- Completed equals True
Note
- You can choose whether to ignore or match case when searching for a sub-string.