Case help for string variable


#1

Hi all! I am trying to create different events based on the weather. I am struggling with the case statement.
It works fine if I just say Case “Cloudy” for example. But the variable returns multiple types of cloudy weather, and I would like to include all of them in a single case statement.
What am I doing wrong?


#2

I figured it out. Contains evaluates as boolean.


#3

I would love to see your working piston :slight_smile:


#4

Sure. Here it is.