Logic gate doesn't seem to behave logically

Hi, I know there are many questions similar to mine and I have read through quite a few of them but, still, I am none the wiser.
I understand in a way that Node-red is not, and never will be, restricted to a logic gate process but still, when a node is supposed to be a logic gate, and I am unable to get it to function as one, I want to find the solution. I have inputted zeros and ones, true and false values yet it behaves unlike any normal logic gate.

Please can someone tell me what parameters to change to allow a simple AND gate function? I am happy to input ones and zeros, trues and falses, strings, anything.
There are Boolean logic nodes aplenty and I have tried several of them but what do they require to make them WORK like logic gates?
I know you will say there are other ways of achieving what I want to achieve but one simple AND gate would do it easily so why would I want to complicate things?

Maybe you could tell us which particular logic gate node is troubling you?

I certainly can: I tried with node-red-contrib-bool-gate and now i'm trying with node-red-contrib-boolean-logic-ultimate. It's the AND function which is troubling me as it outputs "true" when only one input is true, or only one input is "1". That's an AND gate that thinks it's an OR gate. It is also outputting "True" when I disconnect one of the inputs which I can't understand.
I know this is not a logic gate programming tool and it doesn't work the same way as logic gates but the nodes are on offer so I assume they can be made to work as a logic gate. I expect there is a parametre I am missing.

Node-red-contrib-bool-gate was last updated more than 6 years ago and has no github repository, bad signs which would put me off using it.

However I installed it and took a quick look at the example flow provided.
Like you I found it incomprehensible!

Take a look at node-red-boolean-logic-ultimate. It has example flows on github and a youtube video which might be helpful.

Thanks for your replies. I'm using Ultimate right now but the AND is operating like an OR. I've looked through and changed various settings but I don't know what would make it do that.
I want to turn on a relay when input A and input B are BOTH positive/true/"1" and I am really surprised this isn't a dead simple thing to do.

Can you post your flow?

It is tbf. No need for any contrib nodes.

Make sure your 2 inputs have a unique topic. Feed them to a join node (set for 2 items) attach a debug and see what comes out.

Then use 2 switch nodes in series to test the 2 properties of the payload.

You can even make a simple subflow out of this arrangement and call it "MyAndGate" if you wish

I think I have sussed it!

I needed to have 4 inputs to the logic gate, 2 for "trues" and 2 for "falses" otherwise there would be no change after the first output even when I disconnected one of the inputs.
Basically, no input doesn't translate to "false".

I could post my flow but it is very amateurish I'm sure.

Thanks for all your replies.

Now on to the next task of putting a delay in to stop the switches cycling.

That does not matter. bool ultimate is good and works well. Build a simple flow with inject nodes to simulate your inputs, a boolean ultimate node, and a debug node to show the output. If it doesn't work then export those nodes and post it here so we can see what the problem is. Have you made sure the inputs have different topics?

Just for info.
You can also do or/and logic using standard nodes with a mix of join, change, switch and filter nodes.
Here is a small example.

[{"id":"ee1f9dfed6209119","type":"inject","z":"b9860b4b9de8c8da","name":"msg 1 true","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"one","payload":"true","payloadType":"bool","x":380,"y":4760,"wires":[["d94a42404912f076"]]},{"id":"d94a42404912f076","type":"join","z":"b9860b4b9de8c8da","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":590,"y":4800,"wires":[["2ca10df88e57e7c2","33d7b6adea000844","8fa24d8bff3730d9"]]},{"id":"290906d9cff2856b","type":"inject","z":"b9860b4b9de8c8da","name":"msg 1 false","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"one","payload":"false","payloadType":"bool","x":390,"y":4800,"wires":[["d94a42404912f076"]]},{"id":"a47397e88c387948","type":"inject","z":"b9860b4b9de8c8da","name":"msg 2 true","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"two","payload":"true","payloadType":"bool","x":380,"y":4860,"wires":[["d94a42404912f076"]]},{"id":"838f469eb1bc03da","type":"inject","z":"b9860b4b9de8c8da","name":"msg 2 false","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"two","payload":"false","payloadType":"bool","x":390,"y":4900,"wires":[["d94a42404912f076"]]},{"id":"2ca10df88e57e7c2","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"false in $$.payload.*","propertyType":"jsonata","rules":[{"t":"false"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":4720,"wires":[["dd9d15b1e8bcd6f2"]]},{"id":"33d7b6adea000844","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$not(false in $$.payload.*)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":4860,"wires":[["6645276ef260ee56"]]},{"id":"8fa24d8bff3730d9","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false in $$.payload.* ? false : true","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":4940,"wires":[["2a93fd4eebb26be3"]]},{"id":"dd9d15b1e8bcd6f2","type":"debug","z":"b9860b4b9de8c8da","name":"debug 316","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":910,"y":4720,"wires":[]},{"id":"6645276ef260ee56","type":"debug","z":"b9860b4b9de8c8da","name":"debug 317","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":910,"y":4860,"wires":[]},{"id":"2a93fd4eebb26be3","type":"rbe","z":"b9860b4b9de8c8da","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":830,"y":4980,"wires":[["df8755bcbab1d279"]]},{"id":"df8755bcbab1d279","type":"debug","z":"b9860b4b9de8c8da","name":"debug 318","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":930,"y":4940,"wires":[]}]

Sorry, I must need to do something else to post flows in the correct way.

I can't seem to get the "preformatted text" button working as it still won't appear as a long line of text.

[
    {
        "id": "e13c6ec4c6d86fad",
        "type": "victron-input-battery",
        "z": "427b38e8dd718872",
        "service": "com.victronenergy.battery/512",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Pylontech battery"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "name": "SoC",
        "onlyChanges": false,
        "roundValues": "3",
        "x": 70,
        "y": 240,
        "wires": [
            [
                "7e3990660f331109"
            ]
        ]
    },
    {
        "id": "7e3990660f331109",
        "type": "switch",
        "z": "427b38e8dd718872",
        "name": "SoC 50%",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "50",
                "vt": "str"
            },
            {
                "t": "gte",
                "v": "50",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 240,
        "y": 240,
        "wires": [
            [
                "628a04013a442d2b"
            ],
            [
                "4e3e1791d494f834"
            ]
        ]
    },
    {
        "id": "628a04013a442d2b",
        "type": "change",
        "z": "427b38e8dd718872",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 505,
        "y": 195,
        "wires": [
            [
                "4995e8047d8fdd51"
            ]
        ]
    },
    {
        "id": "0b4746d6483380ac",
        "type": "switch",
        "z": "427b38e8dd718872",
        "name": "Charge 10 Amps",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lt",
                "v": "10",
                "vt": "str"
            },
            {
                "t": "gte",
                "v": "10",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 270,
        "y": 300,
        "wires": [
            [
                "6ac5d9e8daaaeb3c"
            ],
            [
                "0067a70dd6c12ae3"
            ]
        ]
    },
    {
        "id": "4e3e1791d494f834",
        "type": "change",
        "z": "427b38e8dd718872",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 505,
        "y": 255,
        "wires": [
            [
                "4995e8047d8fdd51"
            ]
        ]
    },
    {
        "id": "ad580461406d9b88",
        "type": "victron-input-battery",
        "z": "427b38e8dd718872",
        "service": "com.victronenergy.battery/512",
        "path": "/Dc/0/Current",
        "serviceObj": {
            "service": "com.victronenergy.battery/512",
            "name": "Pylontech battery"
        },
        "pathObj": {
            "path": "/Dc/0/Current",
            "type": "float",
            "name": "Current (A)"
        },
        "name": "charge amps",
        "onlyChanges": false,
        "roundValues": "3",
        "x": 90,
        "y": 300,
        "wires": [
            [
                "0b4746d6483380ac"
            ]
        ]
    },
    {
        "id": "6ac5d9e8daaaeb3c",
        "type": "change",
        "z": "427b38e8dd718872",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 505,
        "y": 300,
        "wires": [
            [
                "4995e8047d8fdd51"
            ]
        ]
    },
    {
        "id": "0067a70dd6c12ae3",
        "type": "change",
        "z": "427b38e8dd718872",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 505,
        "y": 360,
        "wires": [
            [
                "4995e8047d8fdd51"
            ]
        ]
    },
    {
        "id": "4995e8047d8fdd51",
        "type": "BooleanLogicUltimate",
        "z": "427b38e8dd718872",
        "name": "",
        "payloadPropName": "payload",
        "filtertrue": "both",
        "persist": true,
        "sInitializeWith": "WaitForPayload",
        "triggertopic": "trigger",
        "outputtriggeredby": "all",
        "inputCount": 2,
        "topic": "result",
        "restrictinputevaluation": false,
        "delayEvaluation": 0,
        "x": 730,
        "y": 270,
        "wires": [
            [],
            [],
            []
        ]
    }
]

To make it appear as a single line, select Compact when you export it. The previous export that you provided was ok, except that you had left in the 'type or paste code here' text when you pasted it. On the last one you have not used the </> button, so the three backticks are not there. I will edit your previous post and put them in.

Please read my post again, where I suggested getting a test going using just Inject nodes to simulate your data (your flow is not useful as we don't have access to the Victron hardware). However, you do not appear to be setting individual topics on the inputs so the node can distinguish which input is which.

It works fine. The difference is when you copy the code on your computer, there is a "Compact" option on the JSON tab. The default is "Formatted".

Regarding the original issue, I think you must be failing to set msg.topic to "input1" or "Input2" (or whatever) so that the node can tell which is which.

Colin clearly types faster than me!

[{"id":"e13c6ec4c6d86fad","type":"victron-input-battery","z":"427b38e8dd718872","service":"com.victronenergy.battery/512","path":"/Soc","serviceObj":{"service":"com.victronenergy.battery/512","name":"Pylontech battery"},"pathObj":{"path":"/Soc","type":"float","name":"State of charge (%)"},"name":"SoC","onlyChanges":false,"roundValues":"3","x":70,"y":240,"wires":[["7e3990660f331109"]]},{"id":"7e3990660f331109","type":"switch","z":"427b38e8dd718872","name":"SoC 50%","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"50","vt":"str"},{"t":"gte","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":240,"y":240,"wires":[["628a04013a442d2b"],["4e3e1791d494f834"]]},{"id":"628a04013a442d2b","type":"change","z":"427b38e8dd718872","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":505,"y":195,"wires":[["4995e8047d8fdd51"]]},{"id":"0b4746d6483380ac","type":"switch","z":"427b38e8dd718872","name":"Charge 10 Amps","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"10","vt":"str"},{"t":"gte","v":"10","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":270,"y":300,"wires":[["6ac5d9e8daaaeb3c"],["0067a70dd6c12ae3"]]},{"id":"4e3e1791d494f834","type":"change","z":"427b38e8dd718872","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":505,"y":255,"wires":[["4995e8047d8fdd51"]]},{"id":"ad580461406d9b88","type":"victron-input-battery","z":"427b38e8dd718872","service":"com.victronenergy.battery/512","path":"/Dc/0/Current","serviceObj":{"service":"com.victronenergy.battery/512","name":"Pylontech battery"},"pathObj":{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},"name":"charge amps","onlyChanges":false,"roundValues":"3","x":90,"y":300,"wires":[["0b4746d6483380ac"]]},{"id":"6ac5d9e8daaaeb3c","type":"change","z":"427b38e8dd718872","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":505,"y":300,"wires":[["4995e8047d8fdd51"]]},{"id":"0067a70dd6c12ae3","type":"change","z":"427b38e8dd718872","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":505,"y":360,"wires":[["4995e8047d8fdd51"]]},{"id":"4995e8047d8fdd51","type":"BooleanLogicUltimate","z":"427b38e8dd718872","name":"","payloadPropName":"payload","filtertrue":"both","persist":true,"sInitializeWith":"WaitForPayload","triggertopic":"trigger","outputtriggeredby":"all","inputCount":2,"topic":"result","restrictinputevaluation":false,"delayEvaluation":0,"x":730,"y":270,"wires":[[],[],[]]}]

That appears to be the same flow, you have not provided an example we can test, using inject nodes.

I hit this wall when I first started with node-red. For me the solution was a simple function node, flow context variables and a bit of nodejs code.

To be rigorously tested.

[{"id":"2283699df4b6d938","type":"inject","z":"370cbf905893daf4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"bc1","v":"green","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"switch1","payload":"true","payloadType":"bool","x":300,"y":240,"wires":[["fd66469577425d17"]]},{"id":"b0563272b2c75460","type":"inject","z":"370cbf905893daf4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"bc1","v":"red","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"switch1","payload":"false","payloadType":"bool","x":300,"y":300,"wires":[["fd66469577425d17"]]},{"id":"42034a39a5372ada","type":"inject","z":"370cbf905893daf4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"bc2","v":"red","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"switch2","payload":"false","payloadType":"bool","x":300,"y":420,"wires":[["05b7d1cd117331c1"]]},{"id":"129f860b1ccc3f98","type":"inject","z":"370cbf905893daf4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"bc2","v":"green","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"switch2","payload":"true","payloadType":"bool","x":300,"y":360,"wires":[["05b7d1cd117331c1"]]},{"id":"fd66469577425d17","type":"change","z":"370cbf905893daf4","name":"","rules":[{"t":"set","p":"switch1","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":270,"wires":[["b05377130d539e14"]]},{"id":"05b7d1cd117331c1","type":"change","z":"370cbf905893daf4","name":"","rules":[{"t":"set","p":"switch2","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":390,"wires":[["b05377130d539e14"]]},{"id":"b05377130d539e14","type":"join","z":"370cbf905893daf4","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":650,"y":330,"wires":[["3dd520e263a3f690"]]},{"id":"3dd520e263a3f690","type":"switch","z":"370cbf905893daf4","name":"Switch1","property":"payload.switch1","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":780,"y":330,"wires":[["1bd24398c1769ce0"],["9d51f91d0f14d0da"]]},{"id":"0025506a23ad1356","type":"ui_switch","z":"370cbf905893daf4","name":"","label":"Switch-2","tooltip":"","group":"3b8a9dc8.db09d2","order":2,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"switch2","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":130,"y":390,"wires":[["05b7d1cd117331c1"]]},{"id":"32838add9dc3dd08","type":"ui_switch","z":"370cbf905893daf4","name":"","label":"Switch-1","tooltip":"","group":"3b8a9dc8.db09d2","order":1,"width":"3","height":"1","passthru":true,"decouple":"false","topic":"switch1","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":130,"y":270,"wires":[["fd66469577425d17"]]},{"id":"1bd24398c1769ce0","type":"link out","z":"370cbf905893daf4","name":"S1-ON","mode":"link","links":["31f6c6ca9b5399da","39f74f13b3df9981","6ba2ee765008e803","86b7e8b9d9403390","24849dac7202bd36","d40b5bc840e23085","500bba19c04ca207"],"x":885,"y":300,"wires":[]},{"id":"9d51f91d0f14d0da","type":"link out","z":"370cbf905893daf4","name":"S1-OFF","mode":"link","links":["08f1aa4dd507c9b4","68f9df1ea99db0d0","f893636b98b8abd2","65f01326a68c9a73","888a073676fe69a0","cdb4c4280284302d","207d9d5dea7e40cc"],"x":885,"y":360,"wires":[]},{"id":"f0d61a66b04489b9","type":"group","z":"370cbf905893daf4","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["f55749ac713a3ca9","ea3bd2152087150e","3202271f1e13e017","1ed8c8b25380fa34","08f1aa4dd507c9b4","39f74f13b3df9981","7d10b7f735c32c63","4810ae16b10de846"],"x":964,"y":349,"w":1032,"h":142},{"id":"f55749ac713a3ca9","type":"change","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":390,"wires":[["3202271f1e13e017","7d10b7f735c32c63"]]},{"id":"ea3bd2152087150e","type":"change","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":450,"wires":[["3202271f1e13e017","7d10b7f735c32c63"]]},{"id":"3202271f1e13e017","type":"ui_button","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"","group":"3b8a9dc8.db09d2","order":5,"width":"6","height":"1","passthru":false,"label":"OR Output","tooltip":"","color":"","bgcolor":"{{bc3}}","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":1680,"y":450,"wires":[[]]},{"id":"1ed8c8b25380fa34","type":"switch","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":450,"wires":[["f55749ac713a3ca9"],["ea3bd2152087150e"]]},{"id":"08f1aa4dd507c9b4","type":"link in","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"link in 216","links":["9d51f91d0f14d0da"],"x":1005,"y":450,"wires":[["1ed8c8b25380fa34"]]},{"id":"39f74f13b3df9981","type":"link in","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"link in 217","links":["1bd24398c1769ce0"],"x":1005,"y":390,"wires":[["f55749ac713a3ca9"]]},{"id":"7d10b7f735c32c63","type":"change","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"bool","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1690,"y":390,"wires":[["4810ae16b10de846"]]},{"id":"4810ae16b10de846","type":"debug","z":"370cbf905893daf4","g":"f0d61a66b04489b9","name":"debug 402","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1880,"y":390,"wires":[]},{"id":"a5cf5180f29347e2","type":"group","z":"370cbf905893daf4","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["54095fc9035205d7","5e1f981d1ca221a3","bcb7386a0970e1f9","68f9df1ea99db0d0","a4a91e83ea5fc72d","6ba2ee765008e803","ad7f2b5448d4392c","a33734c537068343"],"x":964,"y":169,"w":1032,"h":142},{"id":"54095fc9035205d7","type":"change","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":210,"wires":[["bcb7386a0970e1f9","ad7f2b5448d4392c"]]},{"id":"5e1f981d1ca221a3","type":"change","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":270,"wires":[["bcb7386a0970e1f9","ad7f2b5448d4392c"]]},{"id":"bcb7386a0970e1f9","type":"ui_button","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"","group":"3b8a9dc8.db09d2","order":3,"width":"6","height":"1","passthru":true,"label":"AND Output","tooltip":"","color":"","bgcolor":"{{bc3}}","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":1680,"y":270,"wires":[[]]},{"id":"68f9df1ea99db0d0","type":"link in","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"link in 219","links":["9d51f91d0f14d0da"],"x":1005,"y":270,"wires":[["5e1f981d1ca221a3"]]},{"id":"a4a91e83ea5fc72d","type":"switch","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":210,"wires":[["54095fc9035205d7"],["5e1f981d1ca221a3"]]},{"id":"6ba2ee765008e803","type":"link in","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"link in 215","links":["1bd24398c1769ce0"],"x":1005,"y":210,"wires":[["a4a91e83ea5fc72d"]]},{"id":"ad7f2b5448d4392c","type":"change","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"bool","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1690,"y":210,"wires":[["a33734c537068343"]]},{"id":"a33734c537068343","type":"debug","z":"370cbf905893daf4","g":"a5cf5180f29347e2","name":"debug 401","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1880,"y":210,"wires":[]},{"id":"4e4ce02e654ec1a0","type":"group","z":"370cbf905893daf4","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["98d97efb77a24140","ccb4ccd334fae231","79a8b9ee10e8be46","5ee71b3e2426b954","31f6c6ca9b5399da","cdb4c4280284302d","0250c853ba084b60","dd87d01fe043f173","2278d2d6edbe3c21"],"x":964,"y":529,"w":1032,"h":142},{"id":"98d97efb77a24140","type":"change","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":570,"wires":[["79a8b9ee10e8be46","dd87d01fe043f173"]]},{"id":"ccb4ccd334fae231","type":"change","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":630,"wires":[["79a8b9ee10e8be46","dd87d01fe043f173"]]},{"id":"79a8b9ee10e8be46","type":"ui_button","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"","group":"3b8a9dc8.db09d2","order":6,"width":"6","height":"1","passthru":false,"label":"XOR Output","tooltip":"","color":"","bgcolor":"{{bc3}}","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":1680,"y":630,"wires":[[]]},{"id":"5ee71b3e2426b954","type":"switch","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":570,"wires":[["ccb4ccd334fae231"],["98d97efb77a24140"]]},{"id":"31f6c6ca9b5399da","type":"link in","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"link in 218","links":["1bd24398c1769ce0"],"x":1005,"y":570,"wires":[["5ee71b3e2426b954"]]},{"id":"cdb4c4280284302d","type":"link in","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"link in 224","links":["9d51f91d0f14d0da"],"x":1005,"y":630,"wires":[["0250c853ba084b60"]]},{"id":"0250c853ba084b60","type":"switch","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":630,"wires":[["98d97efb77a24140"],["ccb4ccd334fae231"]]},{"id":"dd87d01fe043f173","type":"change","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"bool","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1690,"y":570,"wires":[["2278d2d6edbe3c21"]]},{"id":"2278d2d6edbe3c21","type":"debug","z":"370cbf905893daf4","g":"4e4ce02e654ec1a0","name":"debug 403","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1880,"y":570,"wires":[]},{"id":"a8a1aae2666b0dad","type":"group","z":"370cbf905893daf4","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["5fa65b3a93ac3d93","cbe7fe163da1f69e","ceaa2186b0a7cae4","72b378dd184469d4","50089bcca85e8c69","86b7e8b9d9403390","f893636b98b8abd2","d98fb5f94e98fea4","98802e74e97aa0c5"],"x":964,"y":709,"w":1032,"h":142},{"id":"5fa65b3a93ac3d93","type":"change","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":750,"wires":[["ceaa2186b0a7cae4","d98fb5f94e98fea4"]]},{"id":"cbe7fe163da1f69e","type":"change","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":810,"wires":[["ceaa2186b0a7cae4","d98fb5f94e98fea4"]]},{"id":"ceaa2186b0a7cae4","type":"ui_button","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"","group":"3b8a9dc8.db09d2","order":4,"width":"6","height":"1","passthru":false,"label":"NAND Output","tooltip":"","color":"","bgcolor":"{{bc3}}","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":1690,"y":810,"wires":[[]]},{"id":"72b378dd184469d4","type":"switch","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":750,"wires":[["cbe7fe163da1f69e"],["5fa65b3a93ac3d93"]]},{"id":"50089bcca85e8c69","type":"switch","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":810,"wires":[["5fa65b3a93ac3d93"],["5fa65b3a93ac3d93"]]},{"id":"86b7e8b9d9403390","type":"link in","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"link in 221","links":["1bd24398c1769ce0"],"x":1005,"y":750,"wires":[["72b378dd184469d4"]]},{"id":"f893636b98b8abd2","type":"link in","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"link in 220","links":["9d51f91d0f14d0da"],"x":1005,"y":810,"wires":[["50089bcca85e8c69"]]},{"id":"d98fb5f94e98fea4","type":"change","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"bool","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1690,"y":750,"wires":[["98802e74e97aa0c5"]]},{"id":"98802e74e97aa0c5","type":"debug","z":"370cbf905893daf4","g":"a8a1aae2666b0dad","name":"debug 404","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1880,"y":750,"wires":[]},{"id":"24ad266388a5209d","type":"group","z":"370cbf905893daf4","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["4e11787b02172287","772d18c49cb6d7f6","8e48f02ff9842c78","bce5298d07d69d9d","922018ef70284d42","d40b5bc840e23085","888a073676fe69a0","1d0249f2160dd523","1e5c0326c7ff0e54"],"x":964,"y":919,"w":1032,"h":142},{"id":"4e11787b02172287","type":"change","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":960,"wires":[["8e48f02ff9842c78","1d0249f2160dd523"]]},{"id":"772d18c49cb6d7f6","type":"change","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":1020,"wires":[["8e48f02ff9842c78","1d0249f2160dd523"]]},{"id":"8e48f02ff9842c78","type":"ui_button","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"","group":"3b8a9dc8.db09d2","order":7,"width":"6","height":"1","passthru":false,"label":"NOR Output","tooltip":"","color":"","bgcolor":"{{bc3}}","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":1680,"y":1020,"wires":[[]]},{"id":"bce5298d07d69d9d","type":"switch","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":960,"wires":[["772d18c49cb6d7f6"],["772d18c49cb6d7f6"]]},{"id":"922018ef70284d42","type":"switch","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":1020,"wires":[["772d18c49cb6d7f6"],["4e11787b02172287"]]},{"id":"d40b5bc840e23085","type":"link in","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"link in 223","links":["1bd24398c1769ce0"],"x":1005,"y":960,"wires":[["bce5298d07d69d9d"]]},{"id":"888a073676fe69a0","type":"link in","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"link in 222","links":["9d51f91d0f14d0da"],"x":1005,"y":1020,"wires":[["922018ef70284d42"]]},{"id":"1d0249f2160dd523","type":"change","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"bool","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1690,"y":960,"wires":[["1e5c0326c7ff0e54"]]},{"id":"1e5c0326c7ff0e54","type":"debug","z":"370cbf905893daf4","g":"24ad266388a5209d","name":"debug 405","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1880,"y":960,"wires":[]},{"id":"1f87dafc73a39d18","type":"group","z":"370cbf905893daf4","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["40b557d56799e712","35aee7880c461d12","4a257f60284f528d","0e40e329a104d0e6","278562a769d9a0d4","500bba19c04ca207","207d9d5dea7e40cc","6d1d5acb2e5030d8","a8759f4a59a1e0de"],"x":964,"y":1129,"w":1032,"h":142},{"id":"40b557d56799e712","type":"change","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":1170,"wires":[["4a257f60284f528d","6d1d5acb2e5030d8"]]},{"id":"35aee7880c461d12","type":"change","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"","rules":[{"t":"set","p":"bool","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc3","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1390,"y":1230,"wires":[["4a257f60284f528d","6d1d5acb2e5030d8"]]},{"id":"4a257f60284f528d","type":"ui_button","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"","group":"3b8a9dc8.db09d2","order":8,"width":"6","height":"1","passthru":false,"label":"XNOR Output","tooltip":"","color":"","bgcolor":"{{bc3}}","className":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":1690,"y":1230,"wires":[[]]},{"id":"0e40e329a104d0e6","type":"switch","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":1170,"wires":[["40b557d56799e712"],["35aee7880c461d12"]]},{"id":"278562a769d9a0d4","type":"switch","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"Switch2","property":"payload.switch2","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":1230,"wires":[["35aee7880c461d12"],["40b557d56799e712"]]},{"id":"500bba19c04ca207","type":"link in","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"link in 225","links":["1bd24398c1769ce0"],"x":1005,"y":1170,"wires":[["0e40e329a104d0e6"]]},{"id":"207d9d5dea7e40cc","type":"link in","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"link in 226","links":["9d51f91d0f14d0da"],"x":1005,"y":1230,"wires":[["278562a769d9a0d4"]]},{"id":"6d1d5acb2e5030d8","type":"change","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"bool","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1690,"y":1170,"wires":[["a8759f4a59a1e0de"]]},{"id":"a8759f4a59a1e0de","type":"debug","z":"370cbf905893daf4","g":"1f87dafc73a39d18","name":"debug 406","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1880,"y":1170,"wires":[]},{"id":"3b8a9dc8.db09d2","type":"ui_group","name":"LOGIC GATES","tab":"9f15e1fa.4fc18","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"9f15e1fa.4fc18","type":"ui_tab","name":"GATES","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

gates

To save others from going to the effort of importing the flow to see what it is, that flow does not use the boolean node that the OP is asking for help with, it uses built in nodes.