{"id":7611,"date":"2021-08-05T20:58:25","date_gmt":"2021-08-05T20:58:25","guid":{"rendered":"http:\/\/bryceautomation.com\/?p=7611"},"modified":"2021-08-05T20:58:25","modified_gmt":"2021-08-05T20:58:25","slug":"node-red-boolean-logic","status":"publish","type":"post","link":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/","title":{"rendered":"Node-Red Boolean Logic"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Introduction to Node-Red Boolean Logic<\/h4>\n\n\n\n<p>Node-Red Boolean Logic is very simple to use.  Regardless of your knowledge level, it&#8217;s usually simpler to state our logic goals in plain English.  Undoubtedly, we might be able to accomplish some logic tasks with a function node.  However, the Boolean Logic nodes allows us to have multiple inputs to determine what our output will be.   The Boolean Logic node supports 3 operations, AND, OR, and XOR (Exclusive OR).  In this example, I&#8217;m just using 2 input topics, but you can change that in the node&#8217;s configuration to reflect the number of inputs that you need for each operation.<\/p><div id=\"bryce-2920526260\" class=\"bryce-afterfirst bryce-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8316758073402323\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-8316758073402323\" \ndata-ad-slot=\"7728240895\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n\n<h4 class=\"wp-block-heading\">AND Operation<\/h4>\n\n\n\n<p>While it may be intuitive to some people what the purpose of the AND gate is, others struggle when using it with logic.   For example, let&#8217;s say we have 2 inputs.  When using an AND gate, both inputs must be high.  In other words, lets say we have the Garage Door Up Limit Switch and a Night Mode bit.  Because I don&#8217;t want my garage door to be up at night, I might send a true state to the garage door opener to shut the door. To rephrase it as an if&#8230; then&#8230; statement:  If the Garage Door is up AND it&#8217;s Night time, then turn on the output.<\/p>\n\n\n\n<p>Here is an example of utilizing 2 inputs from a ControlLogix using the Eth-IP node.  We&#8217;ll use a debug node to display the output.<\/p>\n\n\n\n<p>The configuration of the Boolean Logic node is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"454\" height=\"215\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-32.png\" alt=\"\" class=\"wp-image-7612 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-32.png 454w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-32-300x142.png 300w\" data-sizes=\"(max-width: 454px) 100vw, 454px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 454px; --smush-placeholder-aspect-ratio: 454\/215;\" \/><\/figure>\n\n\n\n<p>Coupled with our node layout, we can see the result.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"553\" height=\"136\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-33.png\" alt=\"\" class=\"wp-image-7614 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-33.png 553w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-33-300x74.png 300w\" data-sizes=\"(max-width: 553px) 100vw, 553px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 553px; --smush-placeholder-aspect-ratio: 553\/136;\" \/><\/figure>\n\n\n\n<p>If one of those conditions are false, then the result will be false.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"544\" height=\"169\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-34.png\" alt=\"\" class=\"wp-image-7615 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-34.png 544w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-34-300x93.png 300w\" data-sizes=\"(max-width: 544px) 100vw, 544px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 544px; --smush-placeholder-aspect-ratio: 544\/169;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">OR Operation<\/h4>\n\n\n\n<p>Conversely, the OR node sends a TRUE output when any of the inputs are true.  For example:  We have two (or more) motion detectors.  When ANY of the motion detectors are tripped, we want the output to go true.  Again, it&#8217;s usually easier to put this into plain English before writing the logic.  In this case, we would say:  If North Motion Detector OR South motion detector is true, then energize the output.  Let&#8217;s look at the flow.  Obviously, I&#8217;ve changed the operation of the node to OR.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"604\" height=\"132\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-35.png\" alt=\"\" class=\"wp-image-7616 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-35.png 604w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-35-300x66.png 300w\" data-sizes=\"(max-width: 604px) 100vw, 604px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 604px; --smush-placeholder-aspect-ratio: 604\/132;\" \/><\/figure>\n\n\n\n<p>As you can see, if any one of the motion sensors are tripped (or both) then our output goes true.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">XOR (Exclusive OR) Operation<\/h4>\n\n\n\n<p>Although you don&#8217;t use the XOR much in home automation projects, there are some uses for it.  With an XOR, the output is true only if ONE and ONLY one of the inputs are true.  A real life example of this might be to limit a function if we have a stuck push button.  For example:  We have 2 push buttons on both sides of the room to turn a light on.  Only one should go true at any time.  Needless to say, it might take some other logic to get this example to work the way you want, here is an example of the XOR.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"569\" height=\"114\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-36.png\" alt=\"\" class=\"wp-image-7617 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-36.png 569w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-36-300x60.png 300w\" data-sizes=\"(max-width: 569px) 100vw, 569px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 569px; --smush-placeholder-aspect-ratio: 569\/114;\" \/><\/figure>\n\n\n\n<p>If the North OR South pushbuttons are made, we get a true output.  Conversely, if both switches are made (or no switches), then our output is false.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"580\" height=\"120\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-37.png\" alt=\"\" class=\"wp-image-7618 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-37.png 580w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-37-300x62.png 300w\" data-sizes=\"(max-width: 580px) 100vw, 580px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 580px; --smush-placeholder-aspect-ratio: 580\/120;\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Summary of Node-Red Boolean Logic<\/h4>\n\n\n\n<p>To summarize, with the AND gate, all inputs must be true for the output to be true.  When using an OR gate, only ONE or more conditions must be true for the output to be on.  With the Exclusive OR (XOR),  One and ONLY one condition must be true to get a true output.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"655\" height=\"425\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png\" alt=\"\" class=\"wp-image-7619 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png 655w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38-300x195.png 300w\" data-sizes=\"(max-width: 655px) 100vw, 655px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 655px; --smush-placeholder-aspect-ratio: 655\/425;\" \/><\/figure>\n\n\n\n<p>For more information about Node-Red, visit the <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/node-red\/\">Node-Red Category Page!<\/a><\/p>\n\n\n\n<p>&#8212; Ricky Bryce<\/p>\n<div id=\"bryce-4001593894\" class=\"bryce-after-content bryce-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8316758073402323\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-8316758073402323\" \ndata-ad-slot=\"4667596182\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Introduction to Node-Red Boolean Logic Node-Red Boolean Logic is very simple to use. Regardless of your knowledge level, it&#8217;s usually simpler to state our logic goals in plain English. Undoubtedly, we might be able to accomplish some logic tasks with a function node. However, the Boolean Logic nodes allows us to have multiple inputs to <a class=\"moretag btn btn-primary\" href=\"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/\">Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":7619,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[335],"tags":[325,341,324,326,330],"class_list":{"0":"post-7611","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-node-red","8":"tag-and","9":"tag-boolean","10":"tag-logic","11":"tag-or","12":"tag-xor","13":"czr-hentry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Node-Red Boolean Logic - (AND, OR, XOR) Bryce Automation<\/title>\n<meta name=\"description\" content=\"Set up AND, OR, and XOR (Exclusive OR) gates in Node-Red Boolean Logic. We&#039;ll also discuss real world examples of how they can be used.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node-Red Boolean Logic - (AND, OR, XOR) Bryce Automation\" \/>\n<meta property=\"og:description\" content=\"Set up AND, OR, and XOR (Exclusive OR) gates in Node-Red Boolean Logic. We&#039;ll also discuss real world examples of how they can be used.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/\" \/>\n<meta property=\"og:site_name\" content=\"Bryce Automation\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ricky.bryce.7\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-05T20:58:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png\" \/>\n\t<meta property=\"og:image:width\" content=\"655\" \/>\n\t<meta property=\"og:image:height\" content=\"425\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ricky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/\"},\"author\":{\"name\":\"Ricky\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"headline\":\"Node-Red Boolean Logic\",\"datePublished\":\"2021-08-05T20:58:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/\"},\"wordCount\":600,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-38.png\",\"keywords\":[\"AND\",\"Boolean\",\"Logic\",\"OR\",\"XOR\"],\"articleSection\":[\"Node-Red\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/\",\"name\":\"Node-Red Boolean Logic - (AND, OR, XOR) Bryce Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-38.png\",\"datePublished\":\"2021-08-05T20:58:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"description\":\"Set up AND, OR, and XOR (Exclusive OR) gates in Node-Red Boolean Logic. We'll also discuss real world examples of how they can be used.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-38.png\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-38.png\",\"width\":655,\"height\":425,\"caption\":\"Boolean Logic\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2021\\\/08\\\/05\\\/node-red-boolean-logic\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bryceautomation.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node-Red Boolean Logic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/\",\"name\":\"Bryce Automation\",\"description\":\"Automating Home and Industry...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bryceautomation.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\",\"name\":\"Ricky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/a8f\\\/a8fe6bf79d292b388ffee281ccb12488x96.jpg\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/a8f\\\/a8fe6bf79d292b388ffee281ccb12488x96.jpg\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/wphb-cache\\\/gravatar\\\/a8f\\\/a8fe6bf79d292b388ffee281ccb12488x96.jpg\",\"caption\":\"Ricky\"},\"sameAs\":[\"http:\\\/\\\/bryceautomation.com\",\"https:\\\/\\\/www.facebook.com\\\/ricky.bryce.7\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/ricky-bryce-4367a416\\\/\"],\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/author\\\/ricky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node-Red Boolean Logic - (AND, OR, XOR) Bryce Automation","description":"Set up AND, OR, and XOR (Exclusive OR) gates in Node-Red Boolean Logic. We'll also discuss real world examples of how they can be used.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/","og_locale":"en_US","og_type":"article","og_title":"Node-Red Boolean Logic - (AND, OR, XOR) Bryce Automation","og_description":"Set up AND, OR, and XOR (Exclusive OR) gates in Node-Red Boolean Logic. We'll also discuss real world examples of how they can be used.","og_url":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/","og_site_name":"Bryce Automation","article_author":"https:\/\/www.facebook.com\/ricky.bryce.7","article_published_time":"2021-08-05T20:58:25+00:00","og_image":[{"width":655,"height":425,"url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png","type":"image\/png"}],"author":"Ricky","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#article","isPartOf":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/"},"author":{"name":"Ricky","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"headline":"Node-Red Boolean Logic","datePublished":"2021-08-05T20:58:25+00:00","mainEntityOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/"},"wordCount":600,"commentCount":0,"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png","keywords":["AND","Boolean","Logic","OR","XOR"],"articleSection":["Node-Red"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/","url":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/","name":"Node-Red Boolean Logic - (AND, OR, XOR) Bryce Automation","isPartOf":{"@id":"https:\/\/bryceautomation.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#primaryimage"},"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png","datePublished":"2021-08-05T20:58:25+00:00","author":{"@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"description":"Set up AND, OR, and XOR (Exclusive OR) gates in Node-Red Boolean Logic. We'll also discuss real world examples of how they can be used.","breadcrumb":{"@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#primaryimage","url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2021\/08\/image-38.png","width":655,"height":425,"caption":"Boolean Logic"},{"@type":"BreadcrumbList","@id":"https:\/\/bryceautomation.com\/index.php\/2021\/08\/05\/node-red-boolean-logic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bryceautomation.com\/"},{"@type":"ListItem","position":2,"name":"Node-Red Boolean Logic"}]},{"@type":"WebSite","@id":"https:\/\/bryceautomation.com\/#website","url":"https:\/\/bryceautomation.com\/","name":"Bryce Automation","description":"Automating Home and Industry...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bryceautomation.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7","name":"Ricky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/wp-content\/wphb-cache\/gravatar\/a8f\/a8fe6bf79d292b388ffee281ccb12488x96.jpg","url":"https:\/\/bryceautomation.com\/wp-content\/wphb-cache\/gravatar\/a8f\/a8fe6bf79d292b388ffee281ccb12488x96.jpg","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/wphb-cache\/gravatar\/a8f\/a8fe6bf79d292b388ffee281ccb12488x96.jpg","caption":"Ricky"},"sameAs":["http:\/\/bryceautomation.com","https:\/\/www.facebook.com\/ricky.bryce.7","https:\/\/www.linkedin.com\/in\/ricky-bryce-4367a416\/"],"url":"https:\/\/bryceautomation.com\/index.php\/author\/ricky\/"}]}},"_links":{"self":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/7611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/comments?post=7611"}],"version-history":[{"count":0,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/7611\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media\/7619"}],"wp:attachment":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media?parent=7611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/categories?post=7611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/tags?post=7611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}