Problems with if clauses and loop

I guess that you see something that I am missing. The distances are not read inside of the if blocks. How can the FrontDistance change from < 20 to >20.

I see now. I was looking at the wrong variable(s).