Automation stops at repeat step

Hi, welcome to the forums. Please format your code correctly. See point 11 here. How to help us help you - or How to ask a good question