Andvarvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
Bloodclaw (talk | contribs)
No edit summary
Line 1: Line 1:
'''andvarvar''' <gamevar1> <gamevar2>
'''andvarvar''' <gamevar1> <gamevar2>


This function gives the result of an AND function of the [[gamevar]] <gamevar2> with the [[gamevar]] <gamevar2>. The result goes into <gamevar1>. 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. Also see [[andvar]].
This function gives the result of an AND function of the [[gamevar]] <gamevar1> with the [[gamevar]] <gamevar2>. The result goes into <gamevar1>. 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. Also see [[andvar]].


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

Revision as of 15:30, 28 June 2009

andvarvar <gamevar1> <gamevar2>

This function gives the result of an AND function of the gamevar <gamevar1> with the gamevar <gamevar2>. The result goes into <gamevar1>. 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. Also see andvar.