‘AND’ - ‘OR’ seems easy to understand but when you set it as a part of the conditional rule, it might be easy to mix up. This article will provide some contexts for and/or usages in your daily use of Creative Force.
Remember: Adding the rules to a production type, a position or a variant will define when that production type, position or variant is active in the style guide requirements.
Note: Values for setting up the conditional rules are case insensitive.
You should use ‘AND’ when you want all parts of the condition to be taken jointly.
‘AND’ when the clause is positive
This can be applied to ‘Equal to’ and ‘Contains’. With the below example, you can see the equation is ‘Equal to’. This means that the values have to be the exact match.
The above position will be active only when the product has ALL the values:
Size: Medium
Gender: Men
The position will be inactive when the product has part of or none conditions met.
2. ‘AND’ when the clause is negative
This can be applied to ‘Not equal to’ and ‘Not contains’. With the below example, you can see the equation is ‘Not equal to’. This means that the values have to be the exact match.
The above position will be active only when the product has ALL the values:
Size: not Large
Gender: not Women
The position will be inactive when the product only has part of or none conditions met.
You should use ‘OR’ when you want to link alternatives.
‘OR’ when the clause is positive
This can be applied to ‘Equal to’ and ‘Contains’. With the below example, you can see the equation is ‘Contains’. This means that the values include a part and/or is an exact match.
The above position will be active when a product has a minimum of one condition met:
Brand: includes ‘Sup’
Job code: includes ‘JBS’
The position will be inactive when the product has NONE condition met.
2. ‘OR’ when the clause is negative
This can be applied to ‘Not equal to’ and ‘Not contains’. With the below example, you can see the equation is ‘Not contains’. This means that the values must not include a part and/or is not an exact match.
The above position will be active when a product has a part of the conditions met:
Brand: excludes ‘Deli’
Job code: excludes ‘123’
The position will be inactive when the product has NONE conditions met.