mirror of https://github.com/arendst/Tasmota.git
Updated Rules: IF ELSE ELSEIF and AND OR Support (markdown)
parent
6933e071e5
commit
707f1b9e18
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue