Microflow Timer not allowing parseDecimal function
1
I wanted to display the temperature status of being cold, normal or hot depending on the temperature data that I receive. However, the temperature data that I receive is in String type so in my microflow I need to convert is to decimal in order to make a if statement. Is this a bug or is there a mistake that I did on my end? I’m displaying it in a text using a parameter btw.
asked
Mina Chan
1 answers
2
Your Attribute may be empty.
You should do something like this:
if $Data/Temperature != empty
then parseDecimal($Data/Temperature)
else 0