Error Rules with %sysmonth%
Posted: 30 Aug 2021, 08:12
Hello,
Sorry for my bad English. I’m French.
Yesterday, this rule do else (50), so false, but now, it’s 08:
on ledm1 do
if %sysmonth_0% > 03 or %sysmonth_0% < 10
asyncevent,pwm12=80
else
asyncevent,pwm12=50
endif
endon
I changer that. This morning, the new rules do right (80). But, month is 08. It’s not <= 03 or not >= 10. So this new rules is normally false.
on ledm1 do
if %sysmonth_0% <= 03 or %sysmonth_0% >= 10
asyncevent,pwm12=80
else
asyncevent,pwm12=50
endif
endon
I tried with %sysmonth% too and same error.
Where is the problem please?
Sorry for my bad English. I’m French.
Yesterday, this rule do else (50), so false, but now, it’s 08:
on ledm1 do
if %sysmonth_0% > 03 or %sysmonth_0% < 10
asyncevent,pwm12=80
else
asyncevent,pwm12=50
endif
endon
I changer that. This morning, the new rules do right (80). But, month is 08. It’s not <= 03 or not >= 10. So this new rules is normally false.
on ledm1 do
if %sysmonth_0% <= 03 or %sysmonth_0% >= 10
asyncevent,pwm12=80
else
asyncevent,pwm12=50
endif
endon
I tried with %sysmonth% too and same error.
Where is the problem please?