Not sure why for loop is being evaluated

Hi - Welcome to the forum - please reformat your message