I saw that, but then it seems that I understood it wrong. Proof of work means for me that it checks if the target is smaller than the last hash given. If I have a higher difficulty (and more leading zeroes) then it should be smaller than the last hash, or did I miss something?
Well in such case I think you probably only missed the lesson of C programming, where they were explaining the magic behind
!= symbol