Section5 pages
For loops
Examples of loops and iteration patterns over arrays, files and folders.
Array examplesFor Loop ExamplesCode examples (hashJS) for looping scenarios in hash templates.For loop (basic)This example demonstrates a basic for loop in a hash template, including the use of continue to skip an item and break to exit the loop…Recursive functionExample showing a recursive function (a function calling itself).List folders (for)Gets folders from a specified folder and list the sub folders. Reference: <a href="/JavaScript/Filesystem-functions/getFolders">getFolders</…