This article is also available in:

🟦 Not

🟦 Not


Not


The Not block flips a Boolean value (True/False): True becomes False, and False becomes True β€” like a switch that reverses itself.


It's useful whenever you want to trigger something only when a condition is NOT true.


πŸ“₯ Inputs


  • value (Boolean): The Boolean value to invert, which may come from a condition or a variable.


πŸ“€ Outputs


  • value (Boolean): The inverted value (True becomes False, False becomes True).


πŸ’‘ Example of use


Scenario: Prevent access to a secure area without a badge


  1. A user attempts to open a secure door.
  2. The system checks if the variable aBadge is True (the user has a valid badge).
  3. The value of aBadge is connected to the value input of the Not block.
  4. The output of the Not block is linked to a condition that triggers an alert.
  5. Behavior:


  • If aBadge = False (no badge), the Not block returns True β†’ the alert is triggered.
  • If aBadge = True (valid badge), the Not block returns False β†’ access is authorized.


βš™οΈ Technical Details


  • Logic operation: Pure inversion (!value in programming), compatible only with Boolean data.
  • Error handling: If a non-Boolean value is provided, the block returns False by default.



Documented version: v1

Updated on: 06/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!