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

Includes function example

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.