Can somebody explain why the last condition is not met although the output text and result are exactly the same as in the example output?