Was this helpful?
for ( index in array ) { statements }
The for statement is a loop that iterates over all the elements of an array. Each subscript value of the array is used when looping through the following statements. The in is a membership operator in the array. The parameter index is a variable subscript, and array is an array variable.
Example
for (cnt in vals) vals[cnt] = 0;
# Reinitialize all used elements of the vals array
Last modified date: 08/02/2023