Variable not incrementing correctly

Whandall:
No problem there.

Logical-AND takes precedence over logical-OR.

That would depend on wheter OP wants || precedence over && :wink: