Difference between revisions of "Logic"
From WikiManual
m |
|||
Line 2: | Line 2: | ||
===Logic:=== | ===Logic:=== | ||
− | Logic operators compare | + | Logic operators compare two variables on the stack and replace them with a 0 or a 1 on the stack depending on what operator was used and how many of the variables have ben 0. |
− | ===Energy Cost:== | + | All (but [[not]]) return a 1 if at least one of both variables on the stack was not 0. |
+ | The choosen logic operator mostly exists for situations if both variables are 0 or both are not 0 or if only one of them is 0. | ||
+ | {{Is that true?}} | ||
+ | |||
+ | ===Energy Cost:=== | ||
Since version: 2.4 you can set an Energy cotst per bitwise command instance. default is 0. | Since version: 2.4 you can set an Energy cotst per bitwise command instance. default is 0. |
Revision as of 21:19, 23 December 2005
Logic:
|
Logic:
Logic operators compare two variables on the stack and replace them with a 0 or a 1 on the stack depending on what operator was used and how many of the variables have ben 0.
All (but not) return a 1 if at least one of both variables on the stack was not 0. The choosen logic operator mostly exists for situations if both variables are 0 or both are not 0 or if only one of them is 0.
Energy Cost:
Since version: 2.4 you can set an Energy cotst per bitwise command instance. default is 0.