Blockly: "AND"-block connected to 3 blocks

Moderator: leecollings

Post Reply
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Blockly: "AND"-block connected to 3 blocks

Post by Evelen »

Where can i Find this "and" block that is connected to 1 block on left and 2 at the right?
(image from google):
s.png
s.png (35.92 KiB) Viewed 1370 times
All have is this:
w.png
w.png (2.99 KiB) Viewed 1370 times
Last edited by ThinkPad on Wednesday 06 January 2016 13:30, edited 1 time in total.
Reason: Fixed topictitle: end > AND
cjnicholl
Posts: 36
Joined: Thursday 06 November 2014 15:59
Target OS: Linux
Domoticz version: 2564
Contact:

Re: Blockly: "End"-block connected to 3 blocks

Post by cjnicholl »

Right click on the block and select "External Inputs". This will change the block shape to the one in red circles.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: Blockly: "End"-block connected to 3 blocks

Post by Evelen »

thx.
i works.
now, why is this a usefull thing to do? just to make the code easy to read or can i do somthing more with this "new end"?
cjnicholl
Posts: 36
Joined: Thursday 06 November 2014 15:59
Target OS: Linux
Domoticz version: 2564
Contact:

Re: Blockly: "End"-block connected to 3 blocks

Post by cjnicholl »

As far as I know it's exactly the same, just makes certain layouts easier to read.
I use a combination of both.
smokinjoev
Posts: 9
Joined: Monday 14 December 2015 18:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly: "AND"-block connected to 3 blocks

Post by smokinjoev »

It comes in handy when you have several booleans nested.... event A AND event B AND event C AND event D

Your line become quite long.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest