Difference between revisions of "Lua:bOr"

From Cheat Engine
Jump to navigation Jump to search
 
Line 3: Line 3:
 
-- 1 | 2
 
-- 1 | 2
 
print( bOr(1,2) ) -- 3
 
print( bOr(1,2) ) -- 3
 +
or
 +
print( 1 | 2 ) -- 3
  
 
0001
 
0001

Latest revision as of 18:28, 22 February 2021

bOr(int1, int2) : Binary Or

-- 1 | 2
print( bOr(1,2) ) -- 3
or
print( 1 | 2 ) -- 3

0001
0010
-----
0011