Difference between revisions of "Not"

From WikiManual
Jump to: navigation, search
m
(corrected error)
Line 1: Line 1:
Takes the two top values on the conditions stack and not's them. If both are true it will place a false on the conditions stack. If one is false or both are false it places a true on the conditions stack.
+
'''<code>not</code>''' takes the top value on the conditions [[stack]] and inverts it:
 
+
*<code>True not</code> puts <code>False</code> on the stack.
0 0 not ''puts''''' 1 '''''on the stack''
+
*<code>False not</code> puts <code>True</code> on the stack.
1 0 not ''puts''''' 1 '''''on the stack''
 
0 1 not ''puts''''' 1 '''''on the stack''
 
1 1 not ''puts''''' 0 '''''on the stack''
 
 
 
[[not]] results the exact opposite as [[and]].
 
  
 
{{Logic}}
 
{{Logic}}

Revision as of 22:31, 20 January 2007

not takes the top value on the conditions 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