This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:eq0 [2013/12/03 17:43] – Programming note Grauniad | crpl:docs:eq0 [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | ||
| <- [[crpl: | <- [[crpl: | ||
| ===== eq0 ===== | ===== eq0 ===== | ||
| Line 8: | Line 7: | ||
| === Description === | === Description === | ||
| - | Top item is popped from the stack and Compared to 0. 0 or 1 is pushed back to the stack where 1 indicates true. | + | Top item is popped from the stack and Compared to 0. 0 or 1 is pushed back to the stack where 0 indicates false and 1 indicates true. |
| - | See [[crpl: | + | See [[crpl: |
| === Examples === | === Examples === | ||
| - | < | + | < |
| + | 1 eq0 Trace | ||
| + | |||
| + | #prints out 1 (True) to the tracelog | ||
| + | 7 8 sub 1 add eq0 Trace</ | ||