This takes one or more arguments. All are converted to signed 'long long' (64-bit integers). The result is all arguments "or-ed" together bitwise.
Effectively this sets bits (eg. flags).
Note that clearing a bit can be done with bit.clear.
See Also ...
bit.ashr - Shifts a number right, preserving sign
Lua base functions
(Help topic: lua=bit.bor)
Enter a search string to find matching documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )