Page 1 of 1

Weird result from Blockly if/else construct

Posted: Sunday 29 September 2019 15:24
by forkboy
I have a very simple blockly script to illustrate some weird behavior.
I have created two virtual switches: Tester1 and Tester2.
The blockly event is executed (device) as soon as I switch on Tester1.
The weird result is however that I see both lines: "Tester2 = On" and "Tester2 = Off" in the log (in this order) happening in the same millisecond.
This is my blockly script:
Image

Any ideas?

Re: Weird result from Blockly if/else construct

Posted: Monday 30 September 2019 1:18
by waaren
forkboy wrote: Sunday 29 September 2019 15:24 I have a very simple blockly script to illustrate some weird behavior.
Any ideas?
Check this or any of the other posts on this subject warning for the use of nested IF blocks in domoticz Blockly