$not

From Scriptwiki
Jump to: navigation, search

Performs a bit-wise NOT comparison between 4294967295 and the given number.

$not(number)

Something to Consider

mIRC deals with all numbers as DWORDs (4-byte integers with a max value of 11111111111111111111111111111111 or 4294967295 in decimal). Therefore the number which the given integer is compared against will be the max value, and the given number will always have 32 bits.

Examples

$not(5)

Binary values of each:

11111111111111111111111111111111
00000000000000000000000000000101

Leaving the bits which are in 4294967295 but NOT in 5

Returns: 4294967290 (11111111111111111111111111111010)