in reply to if statement used in foreach-loop?

why is those if-statement not the same output?

The first loop does the print if the value is >= 1.

The second loop does the next if the value is >= 1.

Or to put the latter a different way:

The second loop doesn't do the print if the value is >=1.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.