The Logical NOT works using a different train of thought. Instead of evaluating statements #1, #2 to determine the boolean state of the entire statement (#1 AND/OR #2), the NOT operators has only one statement. The application of the NOT operator to a statement yields a logical complement or negation of the statement. In laymans terms this means the opposite boolean state of the statement, if the statement evaluates to TRUE the opposite (NOT TRUE) would evaluate to FALSE
For example if the variable "on" holds the value of TRUE (or 1) then the statement NOT(on) will evaluate to false (or 0). Check out this script below. If the variable "on" has the value of 1 (Set Variable: "on" = 1) the output is "not on" and vica versa
On (Release)
If ( not on = 0)
Set Variable: "output" = "not on"
Else
Set Variable: "output" = "on"
End If
End On
Is this starting to spin you out? Don't stress it very easy once you're on the right wavelength. The key to just do it and play with it. Ok let's have a closer look at the script. If the variable "on" holds the value of 1 then NOT on will equate to 0 thus the condition "(not on = 0)" evaluates to TRUE and generates the output "not on". Checkout this table it should explain the logic:
Eddie is the Content Editor at Flashkit.com and is actually a sentient Gateway Solo 2150xl notebook that suffers from acute lysdexia and caffeine addiction. He is carried on the shoulders of a semi-autonomous human called "Body".