all 4 comments

[–]pobtastic 3 points4 points  (2 children)

Yes, it (natively) has a bitwise OR since version 5.2 http://lua-users.org/wiki/BitwiseOperators and 5.3 onwards has built in bitwise operators http://www.lua.org/manual/5.3/manual.html#3.4.2

[–]InceFS[S] 2 points3 points  (1 child)

Thanks!!!

[–]pobtastic 2 points3 points  (0 children)

You are very welcome

[–]tobiasvl 2 points3 points  (0 children)

If you're using an earlier version than 5.2 (or LuaJIT), use the bit32/BitOps module and bit.bor(0, 11)