For Loop
A for loop instructs the computer to repeat an action a specific number of times.
//for (initial, condition-check, increment)
for (var j = 1; j < 10; j++) {
total = parseFloat(report['Table'].table[reg.y + j][3]);
}
The first expression in the loop initializes the loop variable. The second expression is a condition used to check when to terminate the loop (when it is false). The third expression is the increment that is evaluated at the end of every iteration.
| << Conditionals | © 1996-2013 InetSoft Technology Corporation (v11.5) | While Loop >> |