Variables

Conditional variable

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.

Screenshot 2025-04-29 at 16.05.02.pngScreenshot 2025-04-29 at 16.06.42.png

Screenshot 2025-04-29 at 16.06.53.png

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

  1. Open the Variables tab

    In your data source, navigate to the Variables section and select "+" button. Then select Conditional Variable from the list.

    Screenshot 2025-04-30 at 13.54.37.png
    Screenshot 2025-04-30 at 14.02.33.png

  2. Define the first condition

    Add a condition called Top

    Set the logic (e.g. ROAS > 500 for the last 160 days)
    Screenshot 2025-04-30 at 14.06.53.png

  3. Add a second condition

    Name: Mid

    Condition: ROAS > 400
    Screenshot 2025-04-30 at 14.08.46.png

  4. Set a default name for remaining items

    Name: Low
    Add no condition
    Screenshot 2025-04-30 at 14.11.21.png

  5. To create margin-based groups, just create new conditional variable and name it Margin label.

  6. Add first condition

    Name: High

    Condition 1: Margin % > 50 → label as High

  7. Set a default name for remaining items

    Name: Low
    Add no condition

  8. You can also set up conditional calculation (e.g., VAT). Create new conditional variable and name it Price with VAT

  9. Change variable type to Conditional Number
    Screenshot 2025-04-30 at 14.22.38.png

  10. Insert formula: Price * 1.21 and Add condition: Main Category = Earrings
    Screenshot 2025-04-30 at 14.22.25.png

  11. Add fallback condition: Price * 1.1 for other categories
    Screenshot 2025-04-30 at 14.23.26.png

 

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
Was this article helpful?
Didn’t find what you were looking for?
Ask a question