bit32.btest(...(number)) : boolean
Perform a bitwise and of all input numbers, and return true
if the result is not 0
.
If the function is called with no arguments, true
is returned.
bit32.btest(9)
{
"def": "func",
"name": "btest",
"energy": 0,
"pure": true,
"sleep": 0,
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"boolean"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "args",
"desc": "values to test together",
"type": [
"integer",
"number"
],
"variadic": true,
"optional": false
}
]
}
],
"desc": "Perform a bitwise and of all input numbers, and return `true` if the result is not `0`.\nIf the function is called with no arguments, `true` is returned.",
"link": "https://luau.org/library#bit32-library#:~:text=function%20bit32.btest"
}