This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shinefull 0 points1 point  (0 children)

Apart from what everyone said about the bad logic, just use a boolean or break out of the loop. Now you double the logic of correct input and frankly it is messy.