Problem with And & or
-
Here is a program that comes from tutorial 9:
Loop Clear() j = controls( 0 ) if !j.zl and !j.zr then Print( "Hurray!" ) endif update() repeat
With this program the 'and' operator acts as the 'or' operator and vice versa
is this normal ? -
In the above it only displays "Hurray!" when zl is NOT pressed (! operator) AND zr is NOT pressed.
So if zr is pressed or zl is pressed (or both are pressed) it is not displayed