Variable not incrementing correctly

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

Not using braces suggests to me that the standard binding should be used and is wanted,
which is by the way the same as your extra bracketed expression.