@GeorgeVi2 You don't have for loop. Instead, see if you can use each function to see if that helps. Take a look at this documentation,
https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/personalization-use-cases/personalization-use-case-helper-funct...