How do i create a counter inside a loop in Hubspot?
SOLVE
Hey,
Im curious how i can create a counter inside a for loop in hubspot? I have a for loop that spit outs different links right now, but i need to be able to keep the count of how many iteration it does. How do i do it in HubL?
For example in javascript you can keep track of it like this:
for (let i = 0; i < 5; i++) { console.log(`Iteration number ${i}`); }
In the same way i want to create a function inside my for loop on my hubspot page where i can set i to a number and for each iteration it increases by 1. I hope this makes sense:)