$array.forEach

Executes the code in parameter 3 for each element of the array after setting the local variable to the element.
Syntax
    $array.forEach{array}{variable_name}{statement_block}
Documentation:
Executes the code in parameter 3 for each element of the array after setting the local variable to the element.
    Paramter:
      1: The array to iterate over.
      2: The name of the local variable which will be set to the current element during each iteration.
      3: The code to be executed at each iteration.
    Returns:
      The concatenated results of the code executions.
    Throws:
      IllegalArgumentException if parameter 1 is not an array.
Examples
$set{a[0]}{hello} $set{a[1]}{you} $array.forEach{$get{a}}{i}{ Element: $get{i}
}
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters3
Maximum parameters 3