if_else statement failure
Posted: Friday 26 January 2018 13:42
Hi all,
I am trying to simulate the ELSE statement that is missing from the Domoticz blockly by the blockly below.
The 'A_kid@home' switch is fired from the SystemAliveChecker(Ping) on a mobile phone
The Variable_set_to_1 is set to integer 1 thus always TRUE
The IF part works fine, and the TestLlight switches ON when "A_kid@home" switches ON
The ELSEIF statement fails to fire when "A_kid@home" switches to OFF. As a result the TestLight remains ON!!
The same result occurs when I change the user variable with a virtual switch permanently set to ON
Could anyone shed some light here??
I am trying to simulate the ELSE statement that is missing from the Domoticz blockly by the blockly below.
The 'A_kid@home' switch is fired from the SystemAliveChecker(Ping) on a mobile phone
The Variable_set_to_1 is set to integer 1 thus always TRUE
The IF part works fine, and the TestLlight switches ON when "A_kid@home" switches ON
The ELSEIF statement fails to fire when "A_kid@home" switches to OFF. As a result the TestLight remains ON!!
The same result occurs when I change the user variable with a virtual switch permanently set to ON
Could anyone shed some light here??