Color Conditional Formatting - Send Email NODE

I need to send an email, and in its body I need to report a value (sourcing from a flow variable).

It is required to have different color formating conditionaly to the variable values.

(I am reporting profit, for positive profit (green), negative (red)

In case I have to use HTML, can someone provide me an example?

Thks

Hi @GMClaudioRJr

I don’t have an example ready right now, but this is possible with HTML:
Check the profit value and create a flow variable (e.g. profit-color) that is “red” if profit < 0 and “green” otherwise. The html code could then look like so:

<p style=“color:$${Sprofit-color}$$”;>The profit was $${Dprofit-value}$$</p>

Kind regards
Marvin

3 Likes

Thank you Marvin.!!!

This worked just fine for me!

1 Like

Hey @GMClaudioRJr

Glad it worked! :slight_smile:
I was meaning to create a quick example by this evening, but you obviously beat me to it :smiley:
If anything else comes up, always feel free to ask here.

Kind regards
Marvin

ps. if you happen to have a small example ready, you can share it here or on the hub for anyone else with a similar question. :slight_smile:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.