Scripting Function: ForEach

Functionname: foreach

Description: Foreach accepts an array of values. The foreach loops through each item in the array

Example:
In the example below we iterate through 3 example values

string[] example = {"example 1","example 2","example 3"};
foreach (string value in example)
{
Log(value);
}

Additional Uses

When working on a browser application, it can be useful to collect all web selectors then loop to find a specific condition or to find one specific selector out of a array of many.