Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Logic comparison

Comparison block is used for comparing two values together and return boolean value representing result of required logical operation.

Block have a left comparative value followed by required operator and then second value for comparison.

Available operators:

  • EQ - equality
  • NEQ - non equality
  • LT - lesser than
  • LTE - lesser or equal than
  • GT - greater than
  • GTE - greater or equal than

Block XML representation

XML representation of logic_compare block

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="logic_compare">
    <field name="OP">EQ</field>
    <value name="A">
      <block type="logic_boolean">
        <field name="BOOL">TRUE</field>
      </block>
    </value>
    <value name="B">
      <block type="logic_boolean">
        <field name="BOOL">FALSE</field>
      </block>
    </value>
  </block>
</xml>

Example of visual representation

"Compare" block

“Compare” block

Example of block usage