Difference between revisions of "And"

From WikiManual
Jump to: navigation, search
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Takes the two top values on the conditions stack and and's them together. If both are true is results in true being placed on the conditions stack. If both false or one is false it will place a false on the conditions stack.
+
Takes the two top values on the boolean stack and and's them together. If both are true it results in true being placed on the boolean stack, otherwise it will place a false on the boolean stack.
  
=== Logical Operators===
+
false false and  ''puts''''' false '''''on the boolean stack''
* [[and]]
+
false true and    ''puts''''' false '''''on the boolean stack''
* [[or]]
+
true false and   ''puts''''' false '''''on the boolean stack''
* [[xor]]
+
true true and    ''puts''''' true '''''on the boolean stack''
* [[not]]
+
 
 +
{{Logic}}

Latest revision as of 15:30, 10 November 2007

Takes the two top values on the boolean stack and and's them together. If both are true it results in true being placed on the boolean stack, otherwise it will place a false on the boolean stack.

false false and   puts false on the boolean stack
false true and    puts false on the boolean stack
true false and    puts false on the boolean stack
true true and     puts true on the boolean stack

Logic:

true
false
and
or
not
xor