I am trying to build up a script that gets the current percentage of the iteration of a loop.
I have :
Firstly, you have to get the total amount of iterations. count() helps in this case.
Live example
Converting 0.xx to x % is left as an exercise for the reader.
0.xx
x %