NOT - ignorantbliss/nba GitHub Wiki

A NOT scripting node is used to invert an output - a value of 0 will become 1, and a value of 1 will become 0.

Inputs

1> Signal: An incoming signal that moves between 0 and 1

Outputs

1> Output: An inverted signal

Usage

This node is used if you want invert an output - for example, if you want to do something when a Button is not activated.

Examples

Flipping Visibility

Let's say you have a Door with a MiniBrush guard behind it.

If the door is inactive (closed), the MiniBrush will be asleep. But when the door opens, the MiniBrush will wake up and start moving. Using the NOT node, you can have logic that happens when the IS ACTIVATED node has a value of either 1 or 0.

See Also

AND
OR