{"id":2319,"date":"2019-09-05T11:35:46","date_gmt":"2019-09-05T10:35:46","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=2319"},"modified":"2019-09-05T11:35:46","modified_gmt":"2019-09-05T10:35:46","slug":"logical-operators-2","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2019\/09\/05\/logical-operators-2\/","title":{"rendered":"Logical Operators"},"content":{"rendered":"<table class=\" aligncenter\">\n<tbody>\n<tr>\n<td colspan=\"3\" width=\"601\"><strong>AND<\/strong><\/p>\n<p>Both expressions must be True for the result to be True<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Expression 1<\/td>\n<td width=\"200\">Expression 2<\/td>\n<td width=\"200\">Result<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">False<\/td>\n<td width=\"200\">False<\/td>\n<td width=\"200\">False<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">False<\/td>\n<td width=\"200\">True<\/td>\n<td width=\"200\">False<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">True<\/td>\n<td width=\"200\">False<\/td>\n<td width=\"200\">False<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">True<\/td>\n<td width=\"200\">True<\/td>\n<td width=\"200\">True<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"3\" width=\"601\"><strong>OR<\/strong><\/p>\n<p>Either expression must be True for the result to be True<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Expression 1<\/td>\n<td width=\"200\">Expression 2<\/td>\n<td width=\"200\">Result<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">False<\/td>\n<td width=\"200\">False<\/td>\n<td width=\"200\">False<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">False<\/td>\n<td width=\"200\">True<\/td>\n<td width=\"200\">True<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">True<\/td>\n<td width=\"200\">False<\/td>\n<td width=\"200\">True<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">True<\/td>\n<td width=\"200\">True<\/td>\n<td width=\"200\">True<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"2\" width=\"601\"><strong>NOT<\/strong><\/p>\n<p>The result is the opposite of the Expression<\/td>\n<\/tr>\n<tr>\n<td width=\"301\">Expression<\/td>\n<td width=\"301\">Result<\/td>\n<\/tr>\n<tr>\n<td width=\"301\">True<\/td>\n<td width=\"301\">False<\/td>\n<\/tr>\n<tr>\n<td width=\"301\">False<\/td>\n<td width=\"301\">True<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AND Both expressions must be True for the result to be True Expression 1 Expression 2 Result False False False False True False True False False True True True &nbsp; OR Either expression must be True for the result to be True Expression 1 Expression 2 Result False False False False True True True False &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17932,17009],"tags":[],"class_list":["post-2319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computational-constructs","category-software-design-devlopment"],"jetpack_featured_media_url":"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/09\/Slide3.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/2319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/comments?post=2319"}],"version-history":[{"count":1,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/2319\/revisions"}],"predecessor-version":[{"id":2320,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/2319\/revisions\/2320"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media\/1385"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}