Updated Rules: IF ELSE ELSEIF and AND OR Support (markdown)

Michael Ingraham 2019-09-09 10:54:03 -04:00
parent 6933e071e5
commit 707f1b9e18
1 changed files with 1 additions and 1 deletions

@ -47,7 +47,7 @@ Parenthesis can be used to change the priority of logical expression. For exampl
- Another IF statement (`IF ... ENDIF`) - Another IF statement (`IF ... ENDIF`)
- Multiple Sonoff-Tasmota commands or IF statements separated by `;`. For example: - Multiple Sonoff-Tasmota commands or IF statements separated by `;`. For example:
`Power1 off; LedPower on; IF (Mem1 == 0) Var1 Var1+1; Mem1 1 ENDIF; Delay 10; Power1 on` `Power1 off; LedPower on; IF (Mem1 == 0) Var1 Var1+1; Mem1 1 ENDIF; Delay 10; Power1 on`
`Backlog` is implied and is not required (saves reule set buffer space). `Backlog` is implied and is not required (saves rule set buffer space).
## Example ## Example
Rule used to control pressure cooker with a Sonoff S31. Once it is finished cooking, shut off the power immediately. Rule used to control pressure cooker with a Sonoff S31. Once it is finished cooking, shut off the power immediately.