If is all time true

Post Reply
warcz
Posts: 3
Joined: Thursday 29 March 2018 10:43
Target OS: -
Domoticz version:
Contact:

If is all time true

Post by warcz » Sunday 01 July 2018 22:03

Hi,

I have problem. When i create:

vypinac = 0;
if vypinac == 1000 then "Nikdy se nestane";

I created "IF" that is not true, but the program always processes it. What is wrong ?

Thank You
Attachments
2018-07-01_2037.png
2018-07-01_2037.png (14.31 KiB) Viewed 208 times
2018-07-01_2037_001.png
2018-07-01_2037_001.png (23.01 KiB) Viewed 208 times

Nautilus
Posts: 752
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: If is all time true

Post by Nautilus » Friday 20 July 2018 8:22

Hi, unfortunately nested ifs do not work in blockly (at least the last I checked). Also all "else if"'s are executed even if previous ones are "true" which means you need to be very careful when setting the conditions. Finally, in cases where you only have one "If...do" (no else if), you shouldn't use the block with the small blue gear icon.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest