Having trouble effectively wrapping int value

On line 4, did you mean || instead of &&?