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

Logic negation (NOT operator)

This operator works on boolean values where inverts it’s value.

Value of true becomes false and vice versa.

However in case that the input variable is not boolean value this operator negates effect of variable testing. That means empty types or None becomes True and non empty vatiables becomes False.

Block XML representation

XML representation of logic_negate block

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="logic_negate">
    <value name="BOOL">
      <block type="logic_boolean">
        <field name="BOOL">TRUE</field>
      </block>
    </value>
  </block>
</xml>

Example of visual representation

"Not" - negation

“Not” - negation