Page 1 of 1
Blockly not working
Posted: Saturday 10 December 2016 23:36
by vgr2
Hi, I've made a blockly script, but dosen't work.
Any help would be greatly appreciated.

- Blockly.JPG (36.63 KiB) Viewed 805 times
Re: Blockly not working
Posted: Sunday 11 December 2016 1:39
by sion
I think you have them boxed / bracketed incorrectly.
I'm on my mobile at the mo so can't to a proper example but will give it a go;
You have :
If (someone home=(off and (m =(on or (v= on))))
You need :
If (((someone home=off) and ((m =on) or (v= on))))
Hopefully that makes sense.
If not I will try and do a proper blocky example tomorow if one has before.
How do you get an image of the blocky ? Just with print screen??
Re: Blockly not working
Posted: Sunday 11 December 2016 1:52
by sion
Also, in your else if statement, I think you want
If sh is on, and BOTH v and m are so( both are away)
Set sh off. At the mo you have an or there.
So if you are both home, and one of you goes out - It would set someone home off
Re: Blockly not working
Posted: Sunday 11 December 2016 1:55
by sion
Think this is rogt.

- IMG_4816.JPG (54.14 KiB) Viewed 791 times