Logical Operator

Introduction

Product Finder 360 provides for a number of rules, including mapping rules, sorting rules, filter rules, etc. In most of the rules you need to use logical operators. While they are mostly rather see-through, sometimes there might appear questions, that this article should answer.

All vs Any

Most rules can be grouped with "all" or "any" rules.

ALL:The product will match this rule only if its category is "mountain" and the wheel size is greater than 26 inches.  

In other words, only mountain bikes with big wheels will be selected.

ANY: In this case ,all the products of the category "mountain" regardless of their wheel size, and all the bikes with wheels exceeding 26 inches (regardless of their category) will match.

 

Text Value Operators

  • equals: Use “equals” if the data value must match exactly.For example:if you define a condition: “type” → “equals” → “electric”, only products with the type “electric” will be considered in the results view. It means that products with the value of “Electric” (capital letter) won’t be shown.

  • contains: Use ‘contains’ if the data value has to contain at least a part of the specified value (case-sensitive).For example:if you select: “type” → “contains” → “lec”, products whose type contains the term ‘lec’, as in “electric” and “Electric” will be considered in the results view.

  • matches: At first glance, matches do exactly the same what “equals”.If you select: “type” → “matches” → “electric”, only the products with a specific value of “electric” will be displayed in the results view. However, unlike equals, matches lets you be even more specific providing the mechanism of Regular Expressions, e.g.:

ValueWill match...What does it do?
Ca(t|r|m)Car, Cat, CamActs like a boolean OR. Matches the character before or after the “|”
Bi.*Bike, Big, Binary, Binoculars (etc.).* Matches any character which follows the “Bi”
Colou?rColor, ColourMatches 0 or 1 of the preceding characters, making it optional.

Boolean Value Operator

If Product Finder 360 defines that the value is boolean, its logical operator is always "equals" and the two possible versions are "true" and "false".

Decimal and Integer Operators

Operators of numerical values are very human readable