Skip to content

Not ​

What It Does ​

Inverts a boolean value, turning true into false and false into true. This is useful for creating opposite conditions or toggling states in your design logic.

Inputs ​

NameDescriptionTypeRequired
valueThe boolean value to negateAnyYes

Outputs ​

NameDescriptionType
valueThe opposite of the input valueYes/No

How to Use It ​

  1. Drag the Logical Not node into your graph.
  2. Connect a boolean value (true/false) to the "value" input.
  3. Run the graph—if you input true, you'll get false; if you input false, you'll get true.
  4. Non-boolean values are converted to boolean before negation (e.g., 0 becomes false, then true).

Logical Not Example

Tips ​

  • In JavaScript, values like 0, empty strings, null, and undefined are "falsy" and will be converted to true by the Not node.
  • Use Not to create inverse conditions rather than duplicating logic with opposite rules.

See Also ​

  • Logical AND: For checking if multiple conditions are all true.
  • Logical OR: For checking if at least one condition is true.

Use Cases ​

  • Toggle States: Invert a boolean state to toggle between two modes (e.g., light/dark theme).
  • Exclusion Rules: Create rules for when something should not apply (e.g., "not mobile" for desktop-only features).
  • Alternate Paths: Set up different design logic paths based on the negation of a condition.