Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rules] Allow "if [" and "if[" in rules (#2987) #3005

Merged
merged 8 commits into from
Apr 25, 2020

Conversation

TD-er
Copy link
Member

@TD-er TD-er commented Apr 12, 2020

Fixes: #2987

@uzi18
Copy link
Contributor

uzi18 commented Apr 12, 2020

@TD-er so please also add such change for elseif

lcAction.indexOf(F("elseif ")); // check for optional "elseif" condition
if (split != -1) {
// Found "elseif" condition
isCommand = false;
if (ifBlock && !fakeIfBlock) {
if (ifBranche[ifBlock - 1]) {
if (condition[ifBlock - 1]) {
ifBranche[ifBlock - 1] = false;
}
else {
String check = lcAction.substring(split + 7);

@TD-er TD-er merged commit 923872a into letscontrolit:mega Apr 25, 2020
@TD-er TD-er deleted the bugfix/2987_rules_if branch April 25, 2020 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule Parsing White Space Issue. {Rule Example in Wiki no longer works}
2 participants