Problems with if clauses and loop

Time to get more coffee for me and clean my glasses. :blush: