Xorvarvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
Line 1: Line 1:
xorvarvar <[[gamevar]]> <gamevar>
xorvarvar <[[gamevar]]> <gamevar2>


XORs the value of <gamevar1> against <gamevar2> and sets <gamevar1> to the result.  See [[xorvar]].
This function gives the result of a XOR function of the [[gamevar]] <gamevar> with <gamevar2>. The function checks the bits of the two values being compared, and the bits in the result are set if one, and only one, of the values being operated on has those bits set.  See [[xorvar]].


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Gamevar manipulation]]
[[Category:Gamevar manipulation]]

Revision as of 16:35, 4 October 2006

xorvarvar <gamevar> <gamevar2>

This function gives the result of a XOR function of the gamevar <gamevar> with <gamevar2>. The function checks the bits of the two values being compared, and the bits in the result are set if one, and only one, of the values being operated on has those bits set. See xorvar.