Skip to main content

For Loop

Module Info:

moduleType: "internal",
moduleName: "forLoop"

Description

The forLoop function is one of the more advanced ones: it receives a number and a function, then it executes the function n times, n being the given number. Optionally you can also give two more functions: one that is executed everytime after the main function and another one that is executed after everything is done.

Inputs

NameTypeRequired
modulefunction
quantitynumber
postEachfunction
postAllfunction

Outputs

NameType
lastIndexValuenumber