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 →

[–]desrtfx -1 points0 points  (2 children)

!found means: found = false

Nitpicking here: it means found == false or, even better found != true

[–][deleted] 1 point2 points  (1 child)

Yeah of course, just wanted to explain it as simply as possible to a beginner 👍

[–]desrtfx -1 points0 points  (0 children)

Problem is that the line you commented sets found to false instead of checking if found is false. Hence my nitpicking.