Home > Proactive Chat v2 evaluation operators
Categories: Proactive Chat
(Last Updated On: July 18, 2017)
Rules enable you to compare the parameter(s) selected to your own value. The evaluation parameter lets you decide how to compare the parameter to your value. For example, for a number you can use:
- “not equals”
- “greater than”
- “less than”
- “equal or greater than”
- “equal or less than”
In the following explanation we are using “Page URL” rule, but the same logic applies to all other Text Type rules.
In the case of a text type value you will have
The source value and the value must be exactly the same.
The source value must contain given value. For example, “mywebsite” would execute on “www.mywebsite.com”, “subdomain.mywebsite.com”, “www.mywebsite.com/about/me” and so on.
This rule will be executed in case the url does not contain the value. For example: in case we want to prompt all the visitor with the message “Hello, how can I help you?” but in case the visitor is on the help pages we don’t want to show this message. In that case we will create a Page URL rule, with “not contains” and the value as “help..mywebsite.com/*”
The source value must begin with given value. “http://” would then execute on anything from the http protocol.
The source value must end with given value. “about/me” would execute on “myfirstwebsite.com/about/me” and also on “mysecondwebsite.com/about/me”.
The source value will be matched against a regular expression, Regex. For more info on what regex is check the wikipedia article.
Advanced Users: When creating your regular expression, please do not add the forward slashes (/…/) as this is programmatically added for you.
In the case of a number type value you will have
The source value and the evaluation value must be exactly the same.
The source value can be anything but the evaluation value.
The source value must be a bigger number than evaluation value
The source value must be a smaller number than evaluation value
The source value must be equal or a bigger number evaluation value
The source value must be equal or a smaller number than evaluation value
The main preferred language of the visitor’s browser settings. In case there are more then one language in the visitor’s browser settings and you selected “English” as the preferred language. This rule will be executed only in case “English” is set up to be the visitors first language in the browser settings.
The rule will be executed in case the language appears in the browser settings list.
The rule will be executed in case the language does not appear in the browser language settings list.
Published November 4, 2013