Attribute - Transaction Value
Value
Profile : currentTxn
Attribute : value
Sub-Attribute: NA
Operators: <,>,<=,>=
Syntax: currentTxn.value.[Operators][Value]
Example: currentTxn.value >= 10.
Meaning: Total value of the transaction
| Example 1 |
|---|
Issuing Coupons for current transaction amounts exceeding a certain value. Issuing Coupons for the current transaction amount between two defined values |
| Example 2: Suppose you want to issue coupons to customers whose full name matches “John Smith” and whose transaction amount exceeds 3000 yet less than 5000. Then use the following condition: |
|---|
| (currentTxn.value>3000&&(currentTxn.value<5000)&&(currentCustomer.name.matches("John Smith")) |
Example 3: Issuing coupons depending on the last name and the transaction amount Consider that you want to issue coupons for certain customers whose current transaction amount is equal to 5000 and their last name matches Smith. Then use the following condition: |
|---|
| currentTxn.value==5000&&(currentCustomer.lastname.matches("Smith")) |
Updated 3 months ago
