Skip to main content

'AND' - 'OR' Usage in Conditional Rules

Viviana avatar
Written by Viviana
Updated this week

‘AND’ - ‘OR’ seems easy to understand, but when you set it as a part of a Conditional Rule, it might be easy not to understand the full potential of their use. 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 Photography Position, or a Variant will define when that item is active within the Style Guide requirements.

Note: Values for setting up conditional rules are case insensitive.

Using 'AND' in Conditional Rules

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 an exact match.

The above position will be active only when the product has ALL values matching exactly as written.

  • Size: Medium

  • Gender: Men

The position will be inactive when the product has part of or none of the conditions.

‘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 an exact match.

The above position will be active only when the product has ALL of the values as an exact match:

  • Size: Any value other than 'Large.'

  • Gender: Any value other than 'Women.'

The position will be inactive when the product only has part of, or none of, the conditions met.

Using 'OR' in Conditional Rules

You should use ‘OR’ when you want to set up 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 no condition met.

‘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 rule is set to ‘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.’

  • Vendor Material Code: excludes ‘123.’

The position will be inactive when the product has no conditions met.

Did this answer your question?