Piston with Only When Condition


#1

I had created a piston to notify me of weather alerts. It has worked fine, except I would get alerts I didn’t care about. I modified it to only send an alert for certain conditions, I hope. What I am not sure about is the ONLY WHEN condition. I don’t want to get an alert for a blank alert which shows up as []. Should this work ok?
The only when checks for the alert to have a length greater than 2.

For some reason the image won’t paste??? It says pasting, but doesn’t show up.

Now trying to delete post until I figure out the image issue, but can’t do that.
Sorry folks.


#2

What you’re doing should work. None of the code inside the “only when” restriction will run unless your alert length is greater than 2. This shouldn’t generate a blank alert… it shouldn’t generate any alert at all when your alert length is 2 or fewer characters.


#3

This problem has been fixed!


#4

Here is the image I tried to post earlier.