This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
crpl:crpltutorial [2018/07/11 11:10] – removed broken comments builder17 | crpl:crpltutorial [2019/12/21 09:21] – xor is exclusive disjunction according to reference, reorder by operator type rytan451 | ||
---|---|---|---|
Line 169: | Line 169: | ||
^ Function ^ Description ^ | ^ Function ^ Description ^ | ||
|and|true if last 2 items are true| | |and|true if last 2 items are true| | ||
- | |or|true if one of the last 2 items are true| | + | |or|true if at least one of the last 2 items are true| |
- | |xor|true if last 2 items are false| | + | |xor|true if exactly one of the last 2 items are true| |
|not|true if the last item is false| | |not|true if the last item is false| | ||
|gt|' | |gt|' | ||
Line 185: | Line 185: | ||
^ Arg1 ^ Arg2 ^ Operation ^ Result ^ | ^ Arg1 ^ Arg2 ^ Operation ^ Result ^ | ||
- | | | + | | false | false | or | False | |
- | | true | | + | | true | false | or | True | |
- | | true | true | or| True | | + | | true | true | or | True | |
- | | | + | | true | true | and | True | |
- | | false | |not| True | | + | | false | true | and | False | |
- | | | + | | false | false | and | False | |
- | | | + | | false | false | xor | false | |
- | | | + | | false | true | xor | true | |
- | | | + | | true | true | xor | false | |
- | | | + | | false | |not | True | |
- | | 2 | 2 | gte| True | | + | |
- | | false | false | and| False | | + | |
- | | true | false | xor| False | | + | |
| true | | not | False | | | true | | not | False | | ||
- | | false | false | or| False | | + | | 2 | | eq0 | False | |
- | | false | true | and| False | | + | | 9 | | neq0 | True | |
- | | 9 | 9 | gt| False | | + | | 5 | 5 | eq | True | |
- | | 6 | 4 | lte| False | | + | | 4 | 5 |eq | False | |
- | | 5 | 5 | lt| False | | + | | 4 | 7 | neq | True | |
- | | 4 | 5 | eq| False | | + | | 9 | 2 | gt | True | |
- | | 2 | | eq0| False | | + | | 9 | 9 | gt | False | |
- | | 1 | 1 | sub neq0| False | | + | | 6 | 7 | lt | True | |
+ | | 5 | 5 | lt | False | | ||
+ | | 2 | 2 | gte | True | | ||
+ | | 6 | 4 | lte | False | | ||
+ | | 1 | 1 | sub neq0 | False | | ||
Written as: | Written as: | ||
< | < |