How to repeat bunch of statements for 5 times using for loop?

I need to use bunch of statements repeatedly for 5 times using for loop.
How to do that for mobile recording?

Something like this…

for (def i : (1..5)) {
  // do stuff here
}