Web Scrapers Generator BrowserExt

foreach

Loop. Iterates through the array or dictionary and executes the loop.

foreach (data as [key =>] value) {
    the loop
}
    

Parameters:

data An array or dictionary, whose elements are iterated through.
key Variable name that will contain the key of the next element. Optional.
value Variable name that will contain the value of the next element.

Break operator is valid inside the loop, it interrupts the loop.

Example 1.