Difference between revisions of "Not"

From WikiManual
Jump to: navigation, search
(Logical Operators)
 
(4 intermediate revisions by 2 users not shown)
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 booleans [[stack]] and inverts it:
 +
*<code>true not</code> puts <code>false</code> on the stack.
 +
*<code>false not</code> puts <code>true</code> on the stack.
  
=== Logical Operators===
+
{{Logic}}
* [[and]]
 
* [[or]]
 
* [[xor]]
 
* [[not]]
 
* [[Robot DNA]]
 

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