marksibly #1 Hi,The operator precedence of 'Not' is different in BMX from B3D - use:If Not (r = 255) Then Print "ok with not"