Difference between revisions of "Not"

From WikiManual
Jump to: navigation, search
(Logical Operators)
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.
 
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.
  
=== Logical Operators===
+
0 0 and ''puts''''' 1 '''''on the stack''
* [[and]]
+
1 0 and ''puts''''' 1 '''''on the stack''
* [[or]]
+
0 1 and ''puts''''' 1 '''''on the stack''
* [[xor]]
+
1 1 and ''puts''''' 0 '''''on the stack''
* [[not]]
+
 
* [[Robot DNA]]
+
[[not]] results the exact opposite as [[and]].

Revision as of 20:47, 23 December 2005

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.

0 0 and puts 1 on the stack
1 0 and puts 1 on the stack
0 1 and puts 1 on the stack
1 1 and puts 0 on the stack

not results the exact opposite as and.