How to send a email with a if statement

I extract a weather http api link in node red. I want to make a if statement that says if the temperature is below 20 degree i get a email saying "you can wear shorts today". How do i do that?

You can make conditional (if's) using the switch node. Set the proprty to the var you wish to compare, then you can set the rules below.

You only wear shorts when its cold ? :wink:

1 Like