Settings & Conditions
Control exactly when and where your Wrangle is active using powerful targeting conditions.
Evaluation Logic
Wrangles use AND logic between conditions. This means for a Wrangle to execute, every single condition you add must evaluate to true at the moment of the scan.
If you need OR logic (e.g., Target US users OR UK users), you should create two separate Wrangles with the same action but different conditions.
Condition Sidebar
To add a condition, drag it from the Available Conditions sidebar on the right into the main canvas. You can reorder conditions by dragging them up or down.
Condition Groups
- Standard: Device info, Browser, Country (ISO), and IP Address.
- Product Data: Batch/Lot numbers, Serial numbers, and GS1 dates (Expiry, Production, etc.).
- User Behaviour: Time of day, and scan frequency (e.g., 1st unique scan vs 10th scan).
Custom Date Formulas
When using date-based conditions (like Expiry Date or Production Date), the Custom Formula option allows you to create relative time-based rules that update automatically.
Syntax
{{TODAY + Amount + Unit}}- Token:
{{TODAY}}represents the current date. - Operator:
+(plus) or-(minus). - Amount: A number (e.g.,
30,1). - Unit:
D(Days),M(Months), orY(Years).
Examples
| Formula | Meaning |
|---|---|
| {{TODAY}} | The current date (today). |
| {{TODAY+30D}} | Exactly 30 days from today. |
| {{TODAY-1Y}} | Exactly one year ago. |
Date Ranges
For Between or In Range operators, separate two formulas with a comma.
Example: {{TODAY}},{{TODAY+7D}} (Targets scans occurring in the next 7 days).