Difference between revisions of "Lua:bOr"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "<h2>bOr(int1, int2) : Binary Or</h2> <pre> print( bOr(1,2) ) -- 3 </pre>")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<h2>bOr(int1, int2)  : Binary Or</h2>
 
<h2>bOr(int1, int2)  : Binary Or</h2>
 
<pre>
 
<pre>
 +
-- 1 | 2
 
print( bOr(1,2) ) -- 3
 
print( bOr(1,2) ) -- 3
 +
or
 +
print( 1 | 2 ) -- 3
 +
 +
0001
 +
0010
 +
-----
 +
0011
 
</pre>
 
</pre>

Latest revision as of 23:28, 22 February 2021

bOr(int1, int2) : Binary Or

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

0001
0010
-----
0011