iOS Bitwise

Does anyone have any code they are willing to share to perform a Bitwise AND and Bitwise OR on two values that would work on iOS (since the Bitwise module does not exist)?


[code]dim x, y as integer
x = 255
y = x and 4 // gets 4… correct

x = 1
y = x or 4 //y is now 5, correct

Ha, thanks. I hadn’t realised the dual functionality of the And keyword.

This works, and is faster, in all project types.