How can I loop on Katalon recorder

You will need to use the commands while...endWhile

Can I suggest that you look at the sample scripts that can be downloaded from here