Instructions/Check Bit

From Desynced Wiki


Check Bit
     File:Instructions-Check Bit.png
     Checks if a specific bit is set in a number
Lua ID check_bit
Category Math
Icon Compare Values.png
Argument One: Type Exec
Argument One: Name Bit Clear
Argument One: Description Execution path if bit is clear
Argument Two: Type Input
Argument Two: Name Value
Argument Two: Description The number to check
Argument Two: Data Type num
Argument Three: Type Input
Argument Three: Name Bit Index
Argument Three: Description Bit index (1 = least significant)
Argument Three: Data Type num