I figured out what is probably the right way to do this (see below) while typing this, but my question is: Can I put an IF statement inside of a With/Do block? Like this:
With
MyLight
Do
If Date is 12/25 then
Turn Red
Else
Turn White
Endif
End With
I can’t see how to do that in the dashboard and maybe it’s not possible. But, I’ve been working on this a whole hour so far, so I’m no expert. Give me another hour or two for that.
I’m more curious about my missing something obvious because the right way to do this is probably to have an IF or CASE up front that sets a variable to a value, then use that value inside the Do part of that statement above.