This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:and [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:and [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== and ===== | ===== and ===== | ||
- | ^Arguments^Result^Notation^ | + | <-bool1 <-bool2 and -> |
- | |Two items on the stack|The conditional AND of the two arguments |'' | + | |
=== Description === | === Description === | ||
Pops two items from the stack and treats them as TRUE/FALSE (0/1 or Boolean) values. If they are both TRUE, 1 is pushed to the stack. Otherwise, 0 is pushed to the stack. | Pops two items from the stack and treats them as TRUE/FALSE (0/1 or Boolean) values. If they are both TRUE, 1 is pushed to the stack. Otherwise, 0 is pushed to the stack. | ||
=== Examples === | === Examples === | ||
- | < | + | < |
+ | TRUE TRUE and Trace # | ||
TRUE FALSE and Trace #prints out 0 (FALSE) to the tracelog | TRUE FALSE and Trace #prints out 0 (FALSE) to the tracelog | ||
FALSE TRUE and Trace #prints out 0 (FALSE) to the tracelog | FALSE TRUE and Trace #prints out 0 (FALSE) to the tracelog | ||
FALSE FALSE and Trace # | FALSE FALSE and Trace # | ||