Although it is possible to achieve much functionality with the Javascript node which allows standard programming loops to be implemented, sometimes we need to replicate this functionality with a node, nodes, or noduls within Latenode. For this purpose, the following scenario subflows are useful.
For Loop
Modify the condition for the “continueExecution” variable (which in this example is _.iterationNum < 5) as needed to stop the loop when appropriate.
While or Do-While Loop
Modify the condition for the “continueExecution” variable (which in this example is _.iterationNum < 7) as needed to stop the loop when appropriate. Change the position of the condition check as needed to achieve the type of loop needed.