Difference between revisions of "Or"
From WikiManual
m (duh) |
m |
||
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 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. | ||
− | 0 0 | + | 0 0 or ''puts''''' 0 '''''on the stack'' |
− | 1 0 | + | 1 0 or ''puts''''' 1 '''''on the stack'' |
− | 0 1 | + | 0 1 or ''puts''''' 1 '''''on the stack'' |
− | 1 1 | + | 1 1 or ''puts''''' 1 '''''on the stack'' |
{{Logic}} | {{Logic}} |
Revision as of 17:09, 31 January 2006
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.
0 0 or puts 0 on the stack 1 0 or puts 1 on the stack 0 1 or puts 1 on the stack 1 1 or puts 1 on the stack
Logic:
|