User Tools

Site Tools


crpl:docs:xor

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:xor [2013/01/14 14:12] – external edit 127.0.0.1crpl:docs:xor [2022/07/01 14:46] (current) – Reformat Karsten75
Line 1: Line 1:
  
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#logical_operators|Logical Operators]]
 =====  xor  ===== =====  xor  =====
  
-^Arguments^Result^Notation^ +xor
-|Two items on the stack|The conditional NOR of the two arguments |''b1 b2 -- b3 ''|+
  
 +=== Description ===
 +Pops two items from the stack, treats them as boolean values, 'xors' (exclusive or) them, and pushes 0 or 1 back to the stack.
  
-=== Description === +If both items are TRUE, 0 is pushed to the stack. If both items are FALSE, 0 is pushed to the stack. If one item is TRUE and the other is FALSE, is pushed to the stack.
-Pops two items from the stack, treats them as boolean values, 'xors' them,  +
-and pushes or back to the stack.+
 === Examples === === Examples ===
-<code>example goes here</code>  +<code 4RPL> 
 +TRUE TRUE Trace     #prints out 0 (FALSE) to the tracelog 
 +TRUE FALSE Trace    #prints out 1 (TRUE) to the tracelog 
 +FALSE TRUE Trace    #prints out 1 (TRUE) to the tracelog 
 +FALSE FALSE Trace   #prints out 0 (FALSE) to the tracelog</code> 
  
crpl/docs/xor.1358190733.txt.gz · Last modified: 2014/10/01 15:02 (external edit)