Also, I agree it *is* a bit buggy - I had to use the parentheses to stop the script abending.

As a real world example, say you have a bit-field which is used to hold options and you want to turn one of the bits off without changing the others. You would use NOT to create an inverted bit mask and then use AND to switch the bit off.

The following code switches off bits 1,3 and 5 without affecting the rest of the bits:

Code:
; Bits 1, 3 and 5
$iBitMask=(1 | 4 | 16)

; Inverse bit mask (byte sized)
$iInverse=(~$iBitMask) & &FF

$iNo=99
While $iNo<>""
"Enter a number: " GetS $iNo
If $iNo <>""
$iNo=CInt($iNo)
" " $iNo " with bits 1,3 and 5 reset is: " ($iNo & $iInverse) ? ?
EndIf
Loop