{"id":12506,"date":"2022-07-19T21:24:35","date_gmt":"2022-07-19T21:24:35","guid":{"rendered":"https:\/\/bryceautomation.com\/?p=12506"},"modified":"2022-07-19T21:24:38","modified_gmt":"2022-07-19T21:24:38","slug":"structured-text-compare-statements","status":"publish","type":"post","link":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/","title":{"rendered":"Structured Text Compare Statements"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction to ControlLogix Structured Text Compare Statements<\/h2>\n\n\n\n<p>The ControlLogix Structured Text Compare Statements work a bit differently than the compare statements of ladder logic and function blocks.  In Structured Text, the compare statements are similar to what you see in other standard programming languages.  Basically, we can test a value to see if it&#8217;s greater than, less than, or equal to  another value, etc.  In Ladder Logic and Function Blocks there is a separate block instruction that we use.<\/p><div id=\"bryce-3438331600\" 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<p>Some programmers prefer structured text for several reasons.  First, it&#8217;s probably closer to what they learned in college for programming.  Secondly, it&#8217;s usually easier to perform complex math in structured text.  Additionally, several programmers can develop the code in Notepad without having to buy a license for Studio 5000.  Structured text closely resembles the PASCAL programming language.   However, as electricians and troubleshooters, we usually hate it.<\/p>\n\n\n\n<p><strong>The most common compare statements include:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Equal &#8220;=&#8221;<\/li><li>Not Equal &#8220;&lt;&gt;&#8221;<\/li><li>Greater Than &#8220;&gt;&#8221;<\/li><li>Less Than &#8220;&lt;&#8220;<\/li><li>Greater Than or Equal &#8220;&gt;=&#8221;<\/li><li>Less Than or Equal &#8220;&lt;=&#8221;<\/li><\/ul>\n\n\n\n<p>Usually, we use these statements inside of an &#8220;<a href=\"https:\/\/bryceautomation.com\/index.php\/2022\/01\/19\/controllogix-if-then-statement\/\">If&#8230;Then<\/a>&#8221; Structure.  Occasionally you may also see this in a &#8220;<a href=\"https:\/\/bryceautomation.com\/index.php\/2022\/02\/04\/controllogix-while-do-statement\/\">While&#8230; Do<\/a>&#8221; loop as well as other structures.  <\/p>\n\n\n\n<p>In this section, we&#8217;ll go over some examples of these compare instructions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create Your Tags<\/h2>\n\n\n\n<p>Before we begin, we&#8217;ll need to create some tags.  We&#8217;ll use these tags to prove our logic.  We&#8217;ll need 5 BOOL tags, and one DINT tag.  Later on, we&#8217;ll put our own values into the &#8220;MyValue&#8221; tag.  Be sure you are in &#8220;Edit Tags&#8221;.  As long as you are not in RUN mode, you should have a blank line at the bottom to add new tags.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"521\" height=\"213\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-133.png\" alt=\"\" class=\"wp-image-12532 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-133.png 521w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-133-300x123.png 300w\" data-sizes=\"(max-width: 521px) 100vw, 521px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 521px; --smush-placeholder-aspect-ratio: 521\/213;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Write Your Logic<\/h2>\n\n\n\n<p>We&#8217;ll create a new subroutine that is the &#8220;Structured Text&#8221; type.  To add a routine just right click on a program and add a new routine.  If you cannot create such a routine, then you might not have a software license that supports structured text.  Keep in mind that if you create a subroutine, you will probably want to add a JSR instruction into the MainRoutine (or another routine that is executing).  Otherwise, the processor will not solve your logic.  <\/p>\n\n\n\n<p>Be sure to end each command with the semicolon &#8220;&#8216;;&#8221;.  Here I&#8217;m breaking each section down into a separate <a href=\"https:\/\/bryceautomation.com\/index.php\/2022\/01\/19\/controllogix-if-then-statement\/\">if&#8230; then<\/a> statement.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if MyValue = 0 then \r\n\tboolEQU := 1;\r\nElse\r\n\tboolEQU := 0;\r\nend_if;\r\n\r\nif MyValue &lt;> 0 then \r\n\tboolNEQ := 1;\r\nElse\r\n\tboolNEQ := 0;\r\nend_if;\r\n\r\nif MyValue >= 0 then \r\n\tboolGEQ := 1;\r\nElse\r\n\tboolGEQ := 0;\r\nend_if;\r\n\r\nif MyValue > 0 then \r\n\tboolGRT := 1;\r\nElse\r\n\tboolGRT := 0;\r\nend_if;\r\n\r\nif MyValue &lt;= 0 then \r\n\tboolLEQ := 1;\r\nElse\r\n\tboolLEQ := 0;\r\nend_if;\r\n\r\nif MyValue &lt; 0 then \r\n\tboolLES := 1;\r\nElse\r\n\tboolLES := 0;\r\nend_if;\r\n\r\n\r\n<\/code><\/pre>\n\n\n\n<p>After you are finished, you can finalize your edits or download.  Just remember if you download, then your system will go down!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Test Your Work<\/h2>\n\n\n\n<p>To test our work, we&#8217;ll bring up the watch window in Studio 5000.   The watch window displays the values of tags that are in this routine.  We&#8217;ll place different numbers into the &#8220;MyValue&#8221; Tag&#8230;  Try a value that is less than zero.  As you can see, three tags are true.  LEQ, LES, and NEQ.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"455\" height=\"219\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-134.png\" alt=\"\" class=\"wp-image-12536 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-134.png 455w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-134-300x144.png 300w\" data-sizes=\"(max-width: 455px) 100vw, 455px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 455px; --smush-placeholder-aspect-ratio: 455\/219;\" \/><\/figure>\n\n\n\n<p>Let&#8217;s try zero.  Once again, three tags are true.  GEQ, LEQ, and EQU.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"460\" height=\"222\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-135.png\" alt=\"\" class=\"wp-image-12537 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-135.png 460w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-135-300x145.png 300w\" data-sizes=\"(max-width: 460px) 100vw, 460px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 460px; --smush-placeholder-aspect-ratio: 460\/222;\" \/><\/figure>\n\n\n\n<p>After that, try a positive value. Obviously, NEQ, GRT, and GEQ become true.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"459\" height=\"223\" data-src=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-136.png\" alt=\"\" class=\"wp-image-12538 lazyload\" data-srcset=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-136.png 459w, https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-136-300x146.png 300w\" data-sizes=\"(max-width: 459px) 100vw, 459px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 459px; --smush-placeholder-aspect-ratio: 459\/223;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Summary of  Structured Text Compare Statements<\/h2>\n\n\n\n<p>In short structured text should not be intimidating.  It&#8217;s just English as if you were reading a book.  The hardest part is getting the syntax exactly right.  Just keep in mind that every command should have a semicolon after it.  Additionally if you start an if&#8230; then&#8230; statement don&#8217;t forget the End_If instruction at the end of the structure.<\/p>\n\n\n\n<p>To learn more about structured text, simply type &#8220;structured text&#8221; in the search bar at the top of this website!<\/p>\n\n\n\n<p>For other information on ControlLogix, visit the <a href=\"https:\/\/bryceautomation.com\/index.php\/category\/controllogix\/\">ControlLogix Category Page.<\/a><\/p>\n\n\n\n<p>&#8212; Ricky Bryce<\/p>\n<div id=\"bryce-2521003018\" 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 ControlLogix Structured Text Compare Statements The ControlLogix Structured Text Compare Statements work a bit differently than the compare statements of ladder logic and function blocks. In Structured Text, the compare statements are similar to what you see in other standard programming languages. Basically, we can test a value to see if it&#8217;s greater <a class=\"moretag btn btn-primary\" href=\"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/\">Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":12540,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[777,772,775,773,774,776,433],"class_list":{"0":"post-12506","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-controllogix","8":"tag-equal","9":"tag-greater-than","10":"tag-greater-than-or-equal","11":"tag-less-than","12":"tag-less-than-or-equal","13":"tag-not-equal","14":"tag-structured-text","15":"czr-hentry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Structured Text Compare Statements - Bryce Automation<\/title>\n<meta name=\"description\" content=\"How to use Structured Text Compare Statements -- greater than, less than, greater than or equal, less than or equal, equal, and not equal.\" \/>\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\/2022\/07\/19\/structured-text-compare-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Structured Text Compare Statements - Bryce Automation\" \/>\n<meta property=\"og:description\" content=\"How to use Structured Text Compare Statements -- greater than, less than, greater than or equal, less than or equal, equal, and not equal.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/\" \/>\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=\"2022-07-19T21:24:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-19T21:24:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-137.png\" \/>\n\t<meta property=\"og:image:width\" content=\"621\" \/>\n\t<meta property=\"og:image:height\" content=\"506\" \/>\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\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/\"},\"author\":{\"name\":\"Ricky\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"headline\":\"Structured Text Compare Statements\",\"datePublished\":\"2022-07-19T21:24:35+00:00\",\"dateModified\":\"2022-07-19T21:24:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/\"},\"wordCount\":604,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/image-137.png\",\"keywords\":[\"equal\",\"greater than\",\"greater than or equal\",\"less than\",\"less than or equal\",\"not equal\",\"structured text\"],\"articleSection\":[\"ControlLogix\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/\",\"name\":\"Structured Text Compare Statements - Bryce Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/image-137.png\",\"datePublished\":\"2022-07-19T21:24:35+00:00\",\"dateModified\":\"2022-07-19T21:24:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/#\\\/schema\\\/person\\\/5d5b0f6f6ad768f1ee52968338e63af7\"},\"description\":\"How to use Structured Text Compare Statements -- greater than, less than, greater than or equal, less than or equal, equal, and not equal.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/image-137.png\",\"contentUrl\":\"https:\\\/\\\/bryceautomation.com\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/image-137.png\",\"width\":621,\"height\":506,\"caption\":\"ControlLogix Structured Text\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bryceautomation.com\\\/index.php\\\/2022\\\/07\\\/19\\\/structured-text-compare-statements\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bryceautomation.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Structured Text Compare Statements\"}]},{\"@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":"Structured Text Compare Statements - Bryce Automation","description":"How to use Structured Text Compare Statements -- greater than, less than, greater than or equal, less than or equal, equal, and not equal.","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\/2022\/07\/19\/structured-text-compare-statements\/","og_locale":"en_US","og_type":"article","og_title":"Structured Text Compare Statements - Bryce Automation","og_description":"How to use Structured Text Compare Statements -- greater than, less than, greater than or equal, less than or equal, equal, and not equal.","og_url":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/","og_site_name":"Bryce Automation","article_author":"https:\/\/www.facebook.com\/ricky.bryce.7","article_published_time":"2022-07-19T21:24:35+00:00","article_modified_time":"2022-07-19T21:24:38+00:00","og_image":[{"width":621,"height":506,"url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-137.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\/2022\/07\/19\/structured-text-compare-statements\/#article","isPartOf":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/"},"author":{"name":"Ricky","@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"headline":"Structured Text Compare Statements","datePublished":"2022-07-19T21:24:35+00:00","dateModified":"2022-07-19T21:24:38+00:00","mainEntityOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/"},"wordCount":604,"commentCount":0,"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-137.png","keywords":["equal","greater than","greater than or equal","less than","less than or equal","not equal","structured text"],"articleSection":["ControlLogix"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/","url":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/","name":"Structured Text Compare Statements - Bryce Automation","isPartOf":{"@id":"https:\/\/bryceautomation.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#primaryimage"},"image":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-137.png","datePublished":"2022-07-19T21:24:35+00:00","dateModified":"2022-07-19T21:24:38+00:00","author":{"@id":"https:\/\/bryceautomation.com\/#\/schema\/person\/5d5b0f6f6ad768f1ee52968338e63af7"},"description":"How to use Structured Text Compare Statements -- greater than, less than, greater than or equal, less than or equal, equal, and not equal.","breadcrumb":{"@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#primaryimage","url":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-137.png","contentUrl":"https:\/\/bryceautomation.com\/wp-content\/uploads\/2022\/07\/image-137.png","width":621,"height":506,"caption":"ControlLogix Structured Text"},{"@type":"BreadcrumbList","@id":"https:\/\/bryceautomation.com\/index.php\/2022\/07\/19\/structured-text-compare-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bryceautomation.com\/"},{"@type":"ListItem","position":2,"name":"Structured Text Compare Statements"}]},{"@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\/12506","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=12506"}],"version-history":[{"count":0,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/posts\/12506\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media\/12540"}],"wp:attachment":[{"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/media?parent=12506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/categories?post=12506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryceautomation.com\/index.php\/wp-json\/wp\/v2\/tags?post=12506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}