Difference between revisions of "Not"

From WikiManual
Jump to: navigation, search
(corrected error)
 
Line 1: Line 1:
'''<code>not</code>''' takes the top value on the conditions [[stack]] and inverts it:
+
'''<code>not</code>''' takes the top value on the booleans [[stack]] and inverts it:
*<code>True not</code> puts <code>False</code> on the stack.
+
*<code>true not</code> puts <code>false</code> on the stack.
*<code>False not</code> puts <code>True</code> on the stack.
+
*<code>false not</code> puts <code>true</code> on the stack.
  
 
{{Logic}}
 
{{Logic}}

Latest revision as of 15:38, 10 November 2007

not takes the top value on the booleans stack and inverts it:

  • true not puts false on the stack.
  • false not puts true on the stack.

Logic:

true
false
and
or
not
xor