This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:and [2013/01/14 19:01] – created virgilw | crpl:docs:and [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | |
+ | <- [[crpl: | ||
+ | ===== and ===== | ||
+ | |||
+ | <-bool1 <-bool2 and -> | ||
+ | |||
+ | === 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. | ||
+ | === Examples === | ||
+ | <code 4RPL> | ||
+ | TRUE TRUE and Trace # | ||
+ | TRUE FALSE and Trace #prints out 0 (FALSE) to the tracelog | ||
+ | FALSE TRUE and Trace #prints out 0 (FALSE) to the tracelog | ||
+ | FALSE FALSE and Trace # |