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 it inverts their them.

The value of true becomes false and vice versa.

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

Block XML representation

XML representation of the 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