How to Display 0 when there is no number to display?


#1

1) Give a description of the problem
I have a piston (it’s long) but the relevant portion of my question centers around the Push Message Functionality which reads “It’s currently {temp} . . . and there have been {rain} inches of rain”

2) What is the DESIRED behavior?
Where there has been no rain (0.0), I would like the message to read ‘0’ I’m a noob at the adding logic through expressions, but I would think there would be a way to have a message that would display based upon a number of scenarios including the fact there has been 0 inches of rain."


#2

What does it send when there’s been no rain?


#3

Change your rainsum variable from dynamic to integer