Skip to main content

Using "In" and "Not In" operators in points rule condition settings

Chiayee avatar
Written by Chiayee
Updated over a week ago

Feature Overview

The Points Rule system's operators provide more flexibility in setting conditions for point awards. These operators allow for more precise targeting and exclusion of specific items or parameters.

Understanding the Operators

The "In" Operator

Allows you to match any value from a selected set of conditions. This is particularly useful when you want to award points for purchases from specific categories or meeting certain parameter values.

The "Not In" Operator

Excludes specified values from the condition matching. This is helpful when you want to prevent point awards for certain items or parameter values.

Case Study: Restaurant Monthly Promotion

A restaurant wants to set up different point rewards based on specific item characteristics and customer parameters.

Scenario 1: Using "In" Operator for Item Extra

The restaurant wants to give bonus points for certain premium dishes:

  • Condition: Item Extra field "category" IN ["Premium", "Signature", "Chef's Special"]

  • Result: Customers get 2x points when ordering any dishes from these categories

Scenario 2: Using "Not In" Operator for Public Params

The restaurant wants to exclude certain membership tiers from a promotion:

  • Condition: Public Params "membership tier" NOT IN ["Trial", "Basic"]

  • Result: Only Gold and Platinum members receive the special point multiplier

Step by Step Guide

  1. Navigate to Loyalty > Points > Points Rule in your dashboard

  2. Choose either Item Condition > Main Conditions > Item Extra or Public Params

  3. Select the appropriate operator ("In" or "Not In") from the condition dropdown

4. Add your desired values or parameters

5. Save your configuration and test the rule

Tips

  • Test your rules thoroughly before implementation

  • Keep track of which items or parameters are included/excluded

  • Regularly review and update your conditions as needed

  • Consider combining operators for more complex rule sets

Did this answer your question?