User Guide : Using Content Extraction Language : Language Syntax and Examples : for ( index in array ) { statements }
 
Share this page             
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