Difference between revisions of "Or"

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

Latest revision as of 15:37, 10 November 2007

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

false false or     puts false on the stack
true false or      puts true on the stack
false true or      puts true on the stack
true true or       puts true on the stack

Logic:

true
false
and
or
not
xor