Discounted products on abandoned checkout

Hi,
I would like to create this workflow for abandoned checkout.

if the customer has discounted products in the cart, send marketing email A
otherwise
if the customer has no discounted products, send marketing email B

Is there a trigger to check if the products in the cart are discounted or undiscounted?
I could use the compare at price field, if it is greater than 0 it means the product is discounted.

Hi Matteo,

I’ve looked through the fields available and from the abandonment object and I think the compare at price field could work for your use case.

Abandonment > products added to cart > variant > compare at price

Thank you Steve!