Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logic node question #5

Closed
Sineos opened this issue Nov 20, 2018 · 2 comments
Closed

logic node question #5

Sineos opened this issue Nov 20, 2018 · 2 comments

Comments

@Sineos
Copy link
Contributor

Sineos commented Nov 20, 2018

I'm playing with the logic node, but I cannot achieve what I intend:

  • Multiple inputs
  • If any of the inputs is true then true --> Works with OR
  • If all inputs are false then false --> Should also work with OR (at least I think so, Boolean algebra isn't my big strength)

The OR function of the logic node results in undefined if the first arriving message is false or if all messages are false.

My test flow:

[{"id":"6158d3c1.0e4ddc","type":"combine-logic","z":"2808bf91.f42188","name":"","topic":"","operator":"or","defer":250,"timeout":0,"distinction":"topic","x":400,"y":1120,"wires":[["6a350ed2.d5472"]]},{"id":"b46b83c4.782ea8","type":"inject","z":"2808bf91.f42188","name":"","topic":"1","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1140,"wires":[["6158d3c1.0e4ddc"]]},{"id":"6e01b5e8.d307c4","type":"inject","z":"2808bf91.f42188","name":"","topic":"2","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1180,"wires":[["6158d3c1.0e4ddc"]]},{"id":"d74f57e5.605c08","type":"inject","z":"2808bf91.f42188","name":"","topic":"3","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1220,"wires":[["6158d3c1.0e4ddc"]]},{"id":"6a350ed2.d5472","type":"debug","z":"2808bf91.f42188","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":560,"y":1120,"wires":[]},{"id":"5c40dde0.b8de4c","type":"inject","z":"2808bf91.f42188","name":"","topic":"1","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1020,"wires":[["6158d3c1.0e4ddc"]]},{"id":"a5919e98.5f6458","type":"inject","z":"2808bf91.f42188","name":"","topic":"2","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1060,"wires":[["6158d3c1.0e4ddc"]]},{"id":"fabb86e4.157198","type":"inject","z":"2808bf91.f42188","name":"","topic":"3","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":1100,"wires":[["6158d3c1.0e4ddc"]]}]

@Sineos
Copy link
Contributor Author

Sineos commented Nov 20, 2018

try fix: #6

@Sineos
Copy link
Contributor Author

Sineos commented Nov 25, 2018

Closed with: 7013d33

@Sineos Sineos closed this as completed Nov 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant