Andvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
andvar <gamevar> <value>
andvar <gamevar> <value>


This function gives the result of an AND function of the [[gamevar]] <gamevar> with <value>. The function checks the bits of the two values being compared and the bits in the result are set only if they were set in both of the values being operated on.  See [[andvarvar]].
This function gives the result of an AND function of the [[gamevar]] <gamevar> with <value>. The result goes into <gamevar>. The function checks the bits of the two values being compared and the bits in the result are set only if they were set in both of the values being operated on.  See [[andvarvar]].


[[Category:EDuke commands]]
[[Category:EDuke commands]]
[[Category:Gamevar manipulation]]
[[Category:Gamevar manipulation]]

Revision as of 20:57, 20 January 2009

andvar <gamevar> <value>

This function gives the result of an AND function of the gamevar <gamevar> with <value>. The result goes into <gamevar>. The function checks the bits of the two values being compared and the bits in the result are set only if they were set in both of the values being operated on. See andvarvar.