Rules is better than ever as it now supports and/or.
But does it also support else if statements? Or any plans to support it?
elseif in rules
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: elseif in rules
It does support else
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: elseif in rules
I want to have this:
Code: Select all
if X and Y
do somethingv1
elseif X
do something 2
else
do something 3
endif
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: elseif in rules
I understand now
Please open a feature request on GitHub.
Please open a feature request on GitHub.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: elseif in rules
I found a solution you can do it like this:
Code: Select all
On Rules#Timer=4 do
if [Dummy#LongLight]=1 and [LED#State]=0
gpio,13,1
endif
if [Dummy#LongLight]=1 and [LED#State]=1
gpio,13,0
endif
if [Dummy#LongLight]=1
timerSet,4,1
endif
Endon
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 139 guests