[Solved]. in, not in
-
I have the following ruleset which I though had been working well until this morning when I noticed it's not.
I've put four weather conditions in an
in
array and one of them is the current weather condition - but the rule is nottrue
. Now the cloud cover percentage is not yet met but this is anor
rule so as long as the "Current Conditions" are met then it should gotrue
.What's the obvious thing I'm missing here? (I've tried spaces/no spaces in the
in
and no difference.) -
It's probably the extra spaces in the comma-separated list. Try removing those.
-
It's probably the extra spaces in the comma-separated list. Try removing those.
@toggledbits I've tried spaces/no spaces in the in and no difference. The ruleset was actually written without spaces.
-
@toggledbits I've tried spaces/no spaces in the in and no difference. The ruleset was actually written without spaces.
@toggledbits curiouser and curiouser - I removed them again and it started working.
They were not there until the rule wasn't working this morning when I added them as a test. I never use spaces but thought perhaps that had changed and I missed the release note.
Very odd.
-
The pattern is pretty basic, so the spaces would factor in to the match. I'll extend it to ignore spaces; I think that makes sense.
-
T toggledbits locked this topic on