Andvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:


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 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:Gamevar manipulation]]

Revision as of 07:31, 24 September 2005

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.