Introduction
This guide explains how to create a conditional variable in Dotidot, which works like a logic funnel. It’s useful, for example, for assigning custom labels or performing conditional calculations.
We’ve prepared a webinar where our marketing specialist Marek explains how to work with several variable types in Dotidot, including Conditional, Array, Remapping, and Countdown variables. This in-depth session is packed with real examples and tips. You can watch the full webinar here.
Below, we’ve selected the part of the webinar that focuses on conditional variable:
If you’d rather read through the content, we’ve put together this written guide summarizing everything covered in the webinar.
What this guide will teach
You’ll learn how to:
• Create performance-based labels
• Set up margin groups
• Apply different VAT calculations based on product category
Who it’s for
Conditional variables are useful for users who want to create dynamic logic using variables to customize labeling or pricing calculations.
Steps
-
Open the Variables tab
In your data source, navigate to the Variables section and select "+" button. Then select Conditional Variable from the list.
-
Define the first condition
Add a condition called Top
Set the logic (e.g. ROAS > 500 for the last 160 days)
-
Add a second condition
Name: Mid
Condition: ROAS > 400
-
Set a default name for remaining items
Name: Low
Add no condition - To create margin-based groups, just create new conditional variable and name it Margin label.
-
Add first condition
Name: High
Condition 1: Margin % > 50 → label as High
-
Set a default name for remaining items
Name: Low
Add no condition - You can also set up conditional calculation (e.g., VAT). Create new conditional variable and name it Price with VAT
- Change variable type to Conditional Number
- Insert formula: Price * 1.21 and Add condition: Main Category = Earrings
- Add fallback condition: Price * 1.1 for other categories
Expected result
You should see:
- Your products dynamically labeled as Top, Mid, or Low based on ROAS
- Margin groups displayed according to percentage thresholds
- VAT correctly calculated and applied to specified categories
To verify:
- Check the variable preview to see if labels or numbers are assigned correctly
- Review product-specific conditions to ensure logic was applied properly