This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:neq [2013/12/03 17:42] – Programming note Grauniad | crpl:docs:neq [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== neq ===== | ===== neq ===== | ||
Line 9: | Line 9: | ||
=== Description === | === Description === | ||
Top two items are popped from the stack and 'Not Equal' comparison is performed. | Top two items are popped from the stack and 'Not Equal' comparison is performed. | ||
- | 0 or 1 is pushed back to the stack where 1 indicates true. | + | 0 or 1 is pushed back to the stack where 0 indicates false and 1 indicates true. |
See [[crpl: | See [[crpl: | ||
=== Examples === | === Examples === | ||
- | < | + | |
+ | < | ||
+ | 7 7 neq Trace | ||
+ | |||
+ | #Prints out 1 (True) to the tracelog | ||
+ | 1 2 neq Trace | ||
+ | </ | ||