User Tools

Site Tools


crpl:docs:neq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:neq [2013/12/03 17:42] – Programming note Grauniadcrpl:docs:neq [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#comparators|Comparators]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#comparators|Comparators]]
 =====  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:docs:eq#comparing_unlike_types|programming note]] for comparing unlike types See [[crpl:docs:eq#comparing_unlike_types|programming note]] for comparing unlike types
  
 === Examples === === Examples ===
-<code>example goes here</code> + 
 +<code>#Prints out 0 (False) to the tracelog 
 +7 7 neq Trace 
 + 
 +#Prints out 1 (True) to the tracelog 
 +1 2 neq Trace 
 +</code> 
  
crpl/docs/neq.1386092577.txt.gz · Last modified: 2025/02/14 14:56 (external edit)