Bell var portB.0
Report var byte

(PortB.0 is pulled up)

Report = !Bell + 48 or Report = (!Bell) + 48

The value of variable Report = "0" (ascii 48) when portB.0 = True
The value of variable Report = "/" (ascii 47) when portB.0 = False (I was expecting ascii 49)

Is this a bug in PBP3 or I am using wrongly the not notation?

Cheers

Al