255 byte value...

BlitzMax Forums/BlitzMax Programming/255 byte value...

B3D isn't BM.
BM has seperated operators for bitoperation and boolean comparision and a "deeper" knowledge of data types then B3D had.
You operation does simply: not 0 ie not false -> true = 1

For what you want to do, you would need to use the bitwise XOR

Local r:Byte = 0

If ($FF ~ r) = 255 Then Print "ok with not"
If r <> 255 Then Print "ok with <>"


$FF ~ r reverts all bits of the byte