Profile: Current Card (currentCard)
Sub-Attributes: Attribute Name and Value
Description: Check if a customer's card contains a specific value in a custom field.
Syntax: currentCustomer.customFieldValueIncludes("CustomFieldName
","CustomFieldValue
")
Example: currentCustomer.customFieldValueIncludes("card_number","97812412")
Example 1: Check if the customer's card type contains "platinum" to identify premium cardholders |
---|
currentCustomer.customFieldValueIncludes("card_type","platinum") |
Example 2: Verify if the customer's card status field includes "active" to ensure the card is currently valid |
---|
currentCustomer.customFieldValueIncludes("card_status","active") |
Example 3: Check if the customer's card was issued by "SBI" bank to apply bank-specific rules or offers |
---|
currentCustomer.customFieldValueIncludes("issuer_bank","SBI") |
Profile: Current Card (currentCard)
Sub-Attributes: Attribute Name and Value
Description: Check if a customer's card does NOT contain a specific value in a custom field.
Syntax: currentCustomer.customFieldValueExcludes("CustomFieldName
","CustomFieldValue
")
Example: currentCustomer.customFieldValueExcludes("card_number","97812412")
Example 1: Check if the customer's loyalty card membership level does NOT contain "basic" to identify premium members only |
---|
currentCustomer.customFieldValueExcludes("membership_level","basic") |
Example 2: Verify that the customer's loyalty card status does NOT include "suspended" to ensure the card is active for rewards |
---|
currentCustomer.customFieldValueExcludes("card_status","suspended") |
Example 3: Check if the customer's loyalty card does NOT have "points_frozen" restriction to allow points redemption |
---|
currentCustomer.customFieldValueExcludes("program_restrictions","points_frozen") |
Profile: Current Card (currentCard)
Sub-Attributes: Extended Field Name and Value
Description: Check if a customer's loyalty card extended field matches a specific value or condition.
Operators: contains, exists, isEmpty, isNotNull, isNull, matches, notExists, isValidDate
Syntax: currentCard.extField_[field_name]
.operator("value") or currentCard.extField_[field_name]
=="value
"
Example: currentCard.extField_card_requested_by=="admin"
📘
Note:
Only extended fields that are enabled for the organisation will be displayed in the drop-down menu.
Example 1: Check if the card_requested_by field contains "Manager" to identify cards requested by any type of manager |
---|
currentCard.extField_card_requested_by.contains("Manager") |
Example 2: Verify if the first activation date field contains a valid date format to ensure data integrity |
---|
currentCard.extField_date_of_card_activation_for_first_time.isValidDate() |
Example 3: Check if the vehicle number field is not null to identify cards linked to vehicles in automotive loyalty programs |
---|
currentCard.extField_vehicle_number.isNotNull() |